Skip to content

Commit 55ee9a9

Browse files
committed
Fix ext/standard WIN32
1 parent ba06f1b commit 55ee9a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/standard/crypt_sha256.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ char * php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int b
511511

512512
if (rounds_custom) {
513513
#ifdef PHP_WIN32
514-
int n = _snprintf(cp, MAX(0, buflen), "%s" ZEND_ULONG_FMT "$", sha256_rounds_prefix, rounds);
514+
int n = _snprintf(cp, MAX(0, buflen), "%s%zu$", sha256_rounds_prefix, rounds);
515515
#else
516516
int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha256_rounds_prefix, rounds);
517517
#endif

ext/standard/crypt_sha512.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen)
550550

551551
if (rounds_custom) {
552552
#ifdef PHP_WIN32
553-
int n = _snprintf(cp, MAX(0, buflen), "%s" ZEND_ULONG_FMT "$", sha512_rounds_prefix, rounds);
553+
int n = _snprintf(cp, MAX(0, buflen), "%s%zu$", sha512_rounds_prefix, rounds);
554554
#else
555555
int n = snprintf(cp, MAX(0, buflen), "%s%zu$", sha512_rounds_prefix, rounds);
556556
#endif

0 commit comments

Comments
 (0)