You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jw...@apache.org on 2001/08/26 01:05:52 UTC
cvs commit: apr-util/buckets apr_buckets_simple.c
jwoolley 01/08/25 16:05:52
Modified: buckets apr_buckets_simple.c
Log:
Since we're using apr_size_t now instead of apr_off_t, there's really no
such thing as point being negative. Since we're unsigned, the only
possibility to check for is point being greater than a->length.
Revision Changes Path
1.34 +1 -1 apr-util/buckets/apr_buckets_simple.c
Index: apr_buckets_simple.c
===================================================================
RCS file: /home/cvs/apr-util/buckets/apr_buckets_simple.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -u -r1.33 -r1.34
--- apr_buckets_simple.c 2001/08/25 22:54:56 1.33
+++ apr_buckets_simple.c 2001/08/25 23:05:52 1.34
@@ -68,7 +68,7 @@
{
apr_bucket *b;
- if ((point > a->length) || (a->length == (apr_size_t)(-1))) {
+ if (point > a->length) {
return APR_EINVAL;
}