diff options
author | Ulrich Drepper <drepper@redhat.com> | 1996-10-02 01:40:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1996-10-02 01:40:17 +0000 |
commit | a68b0d31a37a86785b3dbeeee3fad96ee71fadcd (patch) | |
tree | 61537b1f028002a9e6e0f5354fced6128bda8b9c /string | |
parent | 2d07133b507b13d4a5ed6dc250f4345c8a26942a (diff) | |
download | glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.zip glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.tar.gz glibc-a68b0d31a37a86785b3dbeeee3fad96ee71fadcd.tar.bz2 |
update from main archive 961001
Diffstat (limited to 'string')
-rw-r--r-- | string/tester.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/string/tester.c b/string/tester.c index d376db2..b815539 100644 --- a/string/tester.c +++ b/string/tester.c @@ -215,7 +215,7 @@ DEFUN(main, (argc, argv), int argc AND char **argv) char *p; for (i=0; i < 0x100; i++) { - p = (char *)((int)(buf + 0xff) & ~0xff) + i; + p = (char *)((unsigned long int)(buf + 0xff) & ~0xff) + i; strcpy (p, "OK"); strcpy (p+3, "BAD/WRONG"); check(strlen(p) == 2, 4+i); @@ -241,7 +241,7 @@ DEFUN(main, (argc, argv), int argc AND char **argv) char *p; for (i=0; i < 0x100; i++) { - p = (char *)((int)(buf + 0xff) & ~0xff) + i; + p = (char *)((unsigned long int)(buf + 0xff) & ~0xff) + i; strcpy (p, "OK"); strcpy (p+3, "BAD/WRONG"); check(strchr(p, '/') == NULL, 9+i); @@ -283,7 +283,7 @@ DEFUN(main, (argc, argv), int argc AND char **argv) char *p; for (i=0; i < 0x100; i++) { - p = (char *)((int)(buf + 0xff) & ~0xff) + i; + p = (char *)((unsigned long int)(buf + 0xff) & ~0xff) + i; strcpy (p, "OK"); strcpy (p+3, "BAD/WRONG"); check(strrchr(p, '/') == NULL, 9+i); |