changeset 9156:afa1e1f469db

[aarch32] Fix debug build failure introduced at feec5f4cea8b
author snazarki
date Mon, 12 Aug 2019 13:19:15 +0300
parents 2b93f4e029a4
children 94dedbd6dd2a
files src/cpu/aarch32/vm/c1_CodeStubs_aarch32.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/aarch32/vm/c1_CodeStubs_aarch32.cpp	Thu Jul 11 17:56:07 2019 +0300
+++ b/src/cpu/aarch32/vm/c1_CodeStubs_aarch32.cpp	Mon Aug 12 13:19:15 2019 +0300
@@ -354,8 +354,8 @@
     address next_from = NativeFarLdr::from(start)->next_instruction_address();
     address next_to   = NativeFarLdr::from(_pc_start)->next_instruction_address();
 
-    assert(sizeof(*address) == sizeof(char), "Correct below");
-    address end       = from +  _bytes_to_copy;
+    assert(sizeof(*start) == sizeof(char), "Correct below");
+    address end       = start +  _bytes_to_copy;
     while (next_from < end) {
       assert(*next_from == *next_to, "should be the same code");
       next_from++;