diff options
-rw-r--r-- | src/lj_snap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index 4a773048..9858c110 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -731,7 +731,6 @@ static void snap_restoredata(GCtrace *T, ExitState *ex, | |||
731 | *(lua_Number *)dst = (lua_Number)*(int32_t *)dst; | 731 | *(lua_Number *)dst = (lua_Number)*(int32_t *)dst; |
732 | return; | 732 | return; |
733 | } | 733 | } |
734 | src = (int32_t *)&ex->gpr[r-RID_MIN_GPR]; | ||
735 | #if !LJ_SOFTFP | 734 | #if !LJ_SOFTFP |
736 | if (r >= RID_MAX_GPR) { | 735 | if (r >= RID_MAX_GPR) { |
737 | src = (int32_t *)&ex->fpr[r-RID_MIN_FPR]; | 736 | src = (int32_t *)&ex->fpr[r-RID_MIN_FPR]; |
@@ -743,8 +742,11 @@ static void snap_restoredata(GCtrace *T, ExitState *ex, | |||
743 | #else | 742 | #else |
744 | if (LJ_BE && sz == 4) src++; | 743 | if (LJ_BE && sz == 4) src++; |
745 | #endif | 744 | #endif |
746 | } | 745 | } else |
747 | #endif | 746 | #endif |
747 | { | ||
748 | src = (int32_t *)&ex->gpr[r-RID_MIN_GPR]; | ||
749 | } | ||
748 | } | 750 | } |
749 | } | 751 | } |
750 | lua_assert(sz == 1 || sz == 2 || sz == 4 || sz == 8); | 752 | lua_assert(sz == 1 || sz == 2 || sz == 4 || sz == 8); |