From 6e0973c0aaacc11f6ae3ab33a9ecc93b6b0289ec Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Tue, 31 Aug 2010 14:45:35 +0000 Subject: [PATCH] 2010-08-31 Kai Tietz * config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison. (obj_coff_seh_stackalloc): Likewise. --- gas/ChangeLog | 5 +++++ gas/config/obj-coff-seh.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 70f25a76941..8121c32c2d7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2010-08-31 Kai Tietz + + * config/obj-coff-seh.c (obj_coff_seh_save): Correct comparison. + (obj_coff_seh_stackalloc): Likewise. + 2010-08-31 Alan Modra * config/obj-elf.c (obj_elf_init_stab_section): Fix assertion. diff --git a/gas/config/obj-coff-seh.c b/gas/config/obj-coff-seh.c index b9c5b501e84..d2d01b13182 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 { -- 2.30.2