From 0764c615fd835b2e0fb2acb400d2bcc7253dede6 Mon Sep 17 00:00:00 2001
From: Mike Pall <mike>
Date: Tue, 31 May 2011 21:34:08 +0200
Subject: ARM: Fix string.sub() argument checks.

---
 src/buildvm_arm.dasc | 2 +-
 src/buildvm_arm.h    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/buildvm_arm.dasc b/src/buildvm_arm.dasc
index 495181a1..eed836fa 100644
--- a/src/buildvm_arm.dasc
+++ b/src/buildvm_arm.dasc
@@ -1541,7 +1541,7 @@ static void build_subroutines(BuildCtx *ctx)
   |    mov RB, CARG3
   |   bne ->fff_fallback
   |1:
-  |  ldr CARG34, [BASE, #8]
+  |  ldrd CARG34, [BASE, #8]
   |  checktp CARG2, LJ_TSTR
   |   ldreq CARG2, STR:CARG1->len
   |  checktpeq CARG4, LJ_TISNUM
diff --git a/src/buildvm_arm.h b/src/buildvm_arm.h
index f3b38d1d..3b480326 100644
--- a/src/buildvm_arm.h
+++ b/src/buildvm_arm.h
@@ -2182,7 +2182,7 @@ static const unsigned int build_actionlist[5614] = {
 0x1a000000,
 0x00050044,
 0x0006000b,
-0xe5992008,
+0xe1c920d8,
 0xe3710000,
 0x000a0000,
 0x05101000,
-- 
cgit v1.2.3-55-g6feb