diff options
| author | Andi Gutmans <andi@php.net> | 1999-09-07 20:29:31 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-09-07 20:29:31 +0000 |
| commit | 48ab0fb57d0f5afd1df1dd9352d09151bde0bf19 (patch) | |
| tree | 948703fc5d4ad20d6cdd2fb9e6ba554cd77fb3e0 /ext/standard/string.c | |
| parent | 6101d108e019389390c300ddefd25bd46f6a0627 (diff) | |
| download | php-git-48ab0fb57d0f5afd1df1dd9352d09151bde0bf19.tar.gz | |
- Fix warnings and win32 compile
Diffstat (limited to 'ext/standard/string.c')
| -rw-r--r-- | ext/standard/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index 28f33c519a..b23a224323 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1325,7 +1325,7 @@ PHPAPI void php_stripcslashes(char *str, int *len) numtmp[1] = '\0'; nlen-=2; } - *target++=strtol(numtmp, NULL, 16); + *target++=(char)strtol(numtmp, NULL, 16); break; } /* break is left intentionally */ @@ -1335,7 +1335,7 @@ PHPAPI void php_stripcslashes(char *str, int *len) } if (i) { numtmp[i]='\0'; - *target++=strtol(numtmp, NULL, 8); + *target++=(char)strtol(numtmp, NULL, 8); nlen-=i; source--; } else { |
