trawick 02/03/12 05:22:39
Modified: test testfile.c
Log:
add a cast so that gcc 2.7.2.3 on FreeBSD 3.4 generates the right code
Revision Changes Path
1.45 +1 -1 apr/test/testfile.c
Index: testfile.c
===================================================================
RCS file: /home/cvs/apr/test/testfile.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- testfile.c 11 Mar 2002 22:05:51 -0000 1.44
+++ testfile.c 12 Mar 2002 13:22:39 -0000 1.45
@@ -675,7 +675,7 @@
assert(!rv);
assert(nbytes == sizeof(buf));
- cur = -(nbytes - 7980);
+ cur = -((apr_off_t)nbytes - 7980);
rv = apr_file_seek(f, APR_CUR, &cur);
assert(!rv);
assert(cur == 7990);