- Timestamp:
- 08/20/08 13:23:52 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/BAL/WKAL/Concretizations/Network/Curl/BCFormDataStreamCurl.cpp
r243 r447 29 29 30 30 #include "config.h" 31 32 // We need to define __STDC_LIMIT_MACROS to define SIZE_MAX.33 #ifndef __STDC_LIMIT_MACROS34 #define __STDC_LIMIT_MACROS35 #include <stdint.h>36 #undef __STDC_LIMIT_MACROS37 #else38 #include <stdint.h>39 #endif40 41 31 #include "FormDataStreamCurl.h" 42 32 … … 56 46 { 57 47 // Check for overflow. 58 if (!numberOfBlocks || blockSize > SIZE_MAX/ numberOfBlocks)48 if (!numberOfBlocks || blockSize > std::numeric_limits<size_t>::max() / numberOfBlocks) 59 49 return 0; 60 50
