Author: rooneg
Date: Wed Mar 30 16:16:03 2005
New Revision: 159547

URL: http://svn.apache.org/viewcvs?view=rev&rev=159547
Log:
Fix a bug in the seek test that magically started failing...

* test/store/istream_test.c
  (test_seek): the second arg to lcn_istream_seek is an apr_off_t, 
   so when using a literal argument it needs to be a long long, or
   we'll end up reading past the end of the int.

Modified:
    incubator/lucene4c/trunk/test/store/istream_test.c

Modified: incubator/lucene4c/trunk/test/store/istream_test.c
URL: 
http://svn.apache.org/viewcvs/incubator/lucene4c/trunk/test/store/istream_test.c?view=diff&r1=159546&r2=159547
==============================================================================
--- incubator/lucene4c/trunk/test/store/istream_test.c (original)
+++ incubator/lucene4c/trunk/test/store/istream_test.c Wed Mar 30 16:16:03 2005
@@ -286,7 +286,7 @@
 
   CHK_ERR (lcn_istream_read_byte (ris, &byte, p));
 
-  CHK_ERR (lcn_istream_seek (ris, 0, p));
+  CHK_ERR (lcn_istream_seek (ris, 0LL, p));
 
   CHK_ERR (lcn_istream_read_byte (ris, &byte, p));
 


Reply via email to