diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-08-31 14:45:34 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2010-08-31 14:45:34 +0000 |
commit | de709958fb93b95b23b4d4e19b0dc71219a85091 (patch) | |
tree | 97a02fcc092038fbfddee2f3b3c49050efa34597 /gas/config | |
parent | 6553f618f35c47cc8069caeccb2aee977fd8f85e (diff) | |
download | binutils-redhat-de709958fb93b95b23b4d4e19b0dc71219a85091.tar.gz |
2010-08-31 Kai Tietz <kai.tietz@onevision.com>
* config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison.
(obj_coff_seh_stackalloc): Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-coff-seh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/obj-coff-seh.c b/gas/config/obj-coff-seh.c index b9c5b501e8..d2d01b1318 100644 --- a/gas/config/obj-coff-seh.c +++ b/gas/config/obj-coff-seh.c @@ -493,12 +493,12 @@ obj_coff_seh_save (int what) scale = (what == 1 ? 8 : 16); - if ((off & (scale - 1)) == 0 && off <= 0xffff * scale) + if ((off & (scale - 1)) == 0 && off <= (offsetT) (0xffff * scale)) { code = (what == 1 ? UWOP_SAVE_NONVOL : UWOP_SAVE_XMM128); off /= scale; } - else if (off < 0xffffffff) + else if (off < (offsetT) 0xffffffff) code = (what == 1 ? UWOP_SAVE_NONVOL_FAR : UWOP_SAVE_XMM128_FAR); else { @@ -533,9 +533,9 @@ obj_coff_seh_stackalloc (int what ATTRIBUTE_UNUSED) if ((off & 7) == 0 && off <= 128) code = UWOP_ALLOC_SMALL, info = (off - 8) >> 3, off = 0; - else if ((off & 7) == 0 && off <= 0xffff * 8) + else if ((off & 7) == 0 && off <= (offsetT) (0xffff * 8)) code = UWOP_ALLOC_LARGE, info = 0, off >>= 3; - else if (off <= 0xffffffff) + else if (off <= (offsetT) 0xffffffff) code = UWOP_ALLOC_LARGE, info = 1; else { |