diff options
| author | Kalle Sommer Nielsen <kalle@php.net> | 2010-09-23 03:45:36 +0000 |
|---|---|---|
| committer | Kalle Sommer Nielsen <kalle@php.net> | 2010-09-23 03:45:36 +0000 |
| commit | cb500110163b59116f37e0e3b48d8402e8132a60 (patch) | |
| tree | b3785c87bc38ffc1261a1307fd60263f7f7ff164 /ext/standard/crypt_sha256.c | |
| parent | 466c0b88d7a459ae2967ed1f72b790075fab4854 (diff) | |
| download | php-git-cb500110163b59116f37e0e3b48d8402e8132a60.tar.gz | |
Fixed compiler warnings in the standard library
Diffstat (limited to 'ext/standard/crypt_sha256.c')
| -rw-r--r-- | ext/standard/crypt_sha256.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/crypt_sha256.c b/ext/standard/crypt_sha256.c index f9daed909a..26260992ef 100644 --- a/ext/standard/crypt_sha256.c +++ b/ext/standard/crypt_sha256.c @@ -470,7 +470,7 @@ char * php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int b sha256_init_ctx(&alt_ctx); /* For every character in the password add the entire password. */ - for (cnt = 0; cnt < 16 + alt_result[0]; ++cnt) { + for (cnt = 0; cnt < (size_t) (16 + alt_result[0]); ++cnt) { sha256_process_bytes(salt, salt_len, &alt_ctx); } |
