aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/jmp.cpp
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2013-03-27 14:28:22 +0900
committerMITSUNARI Shigeo <[email protected]>2013-03-27 14:28:22 +0900
commit3756d85207df95e36ad1e306ee5afae94a82d84b (patch)
treea5315fab402b48fd60fda468dfabd0f210cc9dfd /test/jmp.cpp
parentbe26fde1fad7d163bb49c3cd5a88d8b58791e732 (diff)
downloadxbyak-3756d85207df95e36ad1e306ee5afae94a82d84b.tar.gz
xbyak-3756d85207df95e36ad1e306ee5afae94a82d84b.zip
jmp test runs well
Diffstat (limited to 'test/jmp.cpp')
-rw-r--r--test/jmp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/jmp.cpp b/test/jmp.cpp
index 148fa7a..9ff4a03 100644
--- a/test/jmp.cpp
+++ b/test/jmp.cpp
@@ -464,9 +464,8 @@ bool checkAddr(const uint8 *p, size_t offset, size_t expect)
{
size_t v = getValue(p + offset);
printf("v=%p\n", (void*)v);
- v -= size_t(p);
- if (v == expect) return true;
- printf("err p=%p, offset=%lld, v=%d, expect=%d\n", p, (long long)offset, (int)v, (int)expect);
+ if (v == size_t(p) + expect) return true;
+ printf("err p=%p, offset=%lld, v=%llx(%llx), expect=%d\n", p, (long long)offset, (long long)v, (long long)(expect + size_t(p)), (int)expect);
return false;
}