diff options
author | Maxwell Bernstein <emacs@fb.com> | 2020-10-22 13:21:07 -0700 |
---|---|---|
committer | Maxwell Bernstein <emacs@fb.com> | 2020-10-22 13:21:07 -0700 |
commit | cff2cd82c2ea564003d5e4906cf701724772064d (patch) | |
tree | e5d257e0ece7eb576d38d5dde208de51a7d679ad /014indirect_addressing.cc | |
parent | c82d149b3f92cccdbaa054e7ee4ecb814b523fec (diff) | |
download | mu-cff2cd82c2ea564003d5e4906cf701724772064d.tar.gz |
Use size-specific MAX/MIN constants
Don't rely on platform sizes.
Diffstat (limited to '014indirect_addressing.cc')
-rw-r--r-- | 014indirect_addressing.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/014indirect_addressing.cc b/014indirect_addressing.cc index 36b680ca..7df0aae3 100644 --- a/014indirect_addressing.cc +++ b/014indirect_addressing.cc @@ -99,7 +99,7 @@ void test_add_mem_at_rm32_to_r32_signed_overflow() { void test_add_mem_at_rm32_to_r32_unsigned_overflow() { Reg[EAX].u = 0x2000; - Reg[EBX].u = UINT_MAX; + Reg[EBX].u = UINT32_MAX; run( "== code 0x1\n" // op ModR/M SIB displacement immediate |