[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] com =?UTF-8?Q?pecl/file=5Fformats/yaml=3A=20fix=20=5B-Wformat=3D=5D=20iss?= =?UTF-8?Q?ue=
From: Bryan Davis <bd808 () php ! net>
Date: 2020-04-23 6:16:30
Message-ID: php-mail-a69c4d7fcf782ccf2f42e570a7a64f6b207157557 () git ! php ! net
[Download RAW message or body]
Commit: eb11e4e425d3d6e703c824fb891b1b0701d683ef
Author: Remi Collet <remi@remirepo.net> Thu, 23 Apr 2020 08:16:30 +0200
Parents: 4916b31bc0d28d0bd493a889e67ededbb715bc42
Branches: php7
Link: http://git.php.net/?p=pecl/file_formats/yaml.git;a=commitdiff;h=eb11e4e425d3d6e703c824fb891b1b0701d683ef
Log:
fix [-Wformat=] issue on 32-bit
Changed paths:
M emit.c
Diff:
diff --git a/emit.c b/emit.c
index 0fd2ebc..234a64e 100644
--- a/emit.c
+++ b/emit.c
@@ -506,9 +506,9 @@ static int y_write_array(
recursive_idx = y_search_recursive(state, (zend_ulong) ht);
if (-1 != recursive_idx) {
/* create anchor to refer to this structure */
- anchor_size = snprintf(anchor, 0, "refid%ld", recursive_idx + 1);
+ anchor_size = snprintf(anchor, 0, "refid" ZEND_LONG_FMT, recursive_idx + 1);
anchor = (char*) emalloc(anchor_size + 1);
- snprintf(anchor, anchor_size + 1, "refid%ld", recursive_idx + 1);
+ snprintf(anchor, anchor_size + 1, "refid" ZEND_LONG_FMT, recursive_idx + 1);
#if PHP_VERSION_ID >= 70300
if (!(GC_FLAGS(ht) & GC_IMMUTABLE) && GC_IS_RECURSIVE(ht)) {
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic