diff options
author | MITSUNARI Shigeo <[email protected]> | 2013-03-27 14:28:22 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2013-03-27 14:28:22 +0900 |
commit | 3756d85207df95e36ad1e306ee5afae94a82d84b (patch) | |
tree | a5315fab402b48fd60fda468dfabd0f210cc9dfd /test/jmp.cpp | |
parent | be26fde1fad7d163bb49c3cd5a88d8b58791e732 (diff) | |
download | xbyak-3756d85207df95e36ad1e306ee5afae94a82d84b.tar.gz xbyak-3756d85207df95e36ad1e306ee5afae94a82d84b.zip |
jmp test runs well
Diffstat (limited to 'test/jmp.cpp')
-rw-r--r-- | test/jmp.cpp | 5 |
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; } |