diff options
author | Lev Walkin <vlm@lionet.info> | 2005-08-15 01:02:47 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2005-08-15 01:02:47 +0000 |
commit | 3f36e46f794fada04626bceeef32ddc09d270417 (patch) | |
tree | deeafb34a2c990d4b91d7b8a01e921cf8a3ca268 /skeletons | |
parent | 4c97bd6100938fe69669e5c06f70b7d78eaafd83 (diff) |
c99 converts this to unsigned; fixed
Diffstat (limited to 'skeletons')
-rw-r--r-- | skeletons/tests/check-INTEGER.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skeletons/tests/check-INTEGER.c b/skeletons/tests/check-INTEGER.c index 0b2fbf6f..bb692c50 100644 --- a/skeletons/tests/check-INTEGER.c +++ b/skeletons/tests/check-INTEGER.c @@ -135,7 +135,7 @@ main(int ac, char **av) { CHECK(buf8, 0x7F7E7D7C, 0); CHECK(buf9, 0x7F7E7D7C, 0); CHECK(buf10, 0x7F7E7D7C, 0); - CHECK(buf11, -2147483648, 0); /* 0x80000000 */ + CHECK(buf11, -2147483647-1, 0); /* 0x80000000 */ CHECK(buf12, -32768, 0); CHECK(buf13, -128, 0); @@ -164,7 +164,7 @@ main(int ac, char **av) { check_xer(0, "<INTEGER>1234</INTEGER>", 1234); check_xer(-1, "<INTEGER>1234 5678</INTEGER>", 0); check_xer(0, "<INTEGER>-2147483647</INTEGER>", -2147483647); - check_xer(0, "<INTEGER>-2147483648</INTEGER>", -2147483648); + check_xer(0, "<INTEGER>-2147483648</INTEGER>", -2147483647-1); check_xer(0, "<INTEGER>+2147483647</INTEGER>", 2147483647); check_xer(0, "<INTEGER>2147483647</INTEGER>", 2147483647); if(sizeof(long) == 4) { |