Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de2038c

Browse files
fix printf format for zend_ulong
1 parent 31b9521 commit de2038c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎ext/standard/math.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ PHPAPI zend_string *_php_math_number_format_long(zend_long num, int dec, const c
11471147
char cur_char;
11481148
int roundup = 0;
11491149

1150-
tmpbuf = strpprintf(0, "%lu", num_abs);
1150+
tmpbuf = strpprintf(0, ZEND_ULONG_FMT, num_abs);
11511151

11521152
/* rounding more places than length of num
11531153
* or same places of length of num with rounding down

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /