You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2004/01/16 15:29:21 UTC
cvs commit: xml-xerces/c/src/xercesc/util/NetAccessors/libWWW BinURLInputStream.cpp
amassari 2004/01/16 06:29:21
Modified: c/src/xercesc/util/NetAccessors/libWWW BinURLInputStream.cpp
Log:
Removed usage of undeclared macro MIN
Revision Changes Path
1.6 +4 -1 xml-xerces/c/src/xercesc/util/NetAccessors/libWWW/BinURLInputStream.cpp
Index: BinURLInputStream.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/NetAccessors/libWWW/BinURLInputStream.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BinURLInputStream.cpp 24 Dec 2003 15:24:13 -0000 1.5
+++ BinURLInputStream.cpp 16 Jan 2004 14:29:21 -0000 1.6
@@ -56,6 +56,9 @@
/**
* $Log$
+ * Revision 1.6 2004/01/16 14:29:21 amassari
+ * Removed usage of undeclared macro MIN
+ *
* Revision 1.5 2003/12/24 15:24:13 cargilld
* More updates to memory management so that the static memory manager.
*
@@ -320,7 +323,7 @@
// range of bytes that you would like.
sprintf(ranges, "%ld-%ld", fBytesProcessed,
- MIN(fBytesProcessed + URLISBUFMAXSIZE - 1, fRemoteFileSize - 1));
+ fRemoteFileSize<(fBytesProcessed + URLISBUFMAXSIZE)? fRemoteFileSize - 1: fBytesProcessed + URLISBUFMAXSIZE - 1);
HTRequest_addRange(request, "bytes", ranges);
HTRequest_setOutputFormat(request, WWW_SOURCE);
result = HTLoadAnchorToChunk(fAnchor, request);
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org