1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

int -> size_t

This commit is contained in:
Antony Dovgal
2006-10-03 23:22:21 +00:00
parent 1bdcfa172a
commit d38bf75b69
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -511,7 +511,7 @@ END_EXTERN_C()
#define PHP_STREAM_COPY_ALL ((size_t)-1)
BEGIN_EXTERN_C()
PHPAPI size_t _php_stream_ucopy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, int maxchars STREAMS_DC TSRMLS_DC);
PHPAPI size_t _php_stream_ucopy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, size_t maxchars STREAMS_DC TSRMLS_DC);
PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_DC TSRMLS_DC);
/* Preserve "characters" semantics by having maxlen refer to maxchars in a unicode context */
#define php_stream_copy_to_stream(src, dest, maxlen) ( ((src)->readbuf_type == IS_STRING) \
+1 -1
View File
@@ -1734,7 +1734,7 @@ PHPAPI size_t _php_stream_copy_to_mem_ex(php_stream *src, zend_uchar rettype, vo
}
/* Designed for copying UChars (taking into account both maxlen and maxchars) */
PHPAPI size_t _php_stream_ucopy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, int maxchars STREAMS_DC TSRMLS_DC)
PHPAPI size_t _php_stream_ucopy_to_stream(php_stream *src, php_stream *dest, size_t maxlen, size_t maxchars STREAMS_DC TSRMLS_DC)
{
size_t haveread = 0;
php_stream_statbuf ssbuf;