]> granicus.if.org Git - php/commitdiff
fix compiler warning
authorAnatol Belski <ab@php.net>
Mon, 25 Jul 2016 21:02:09 +0000 (23:02 +0200)
committerAnatol Belski <ab@php.net>
Tue, 26 Jul 2016 05:53:24 +0000 (07:53 +0200)
ext/intl/calendar/calendar_methods.cpp

index 155ed5f7f480d2c528adb1dad1f1d99e03f915c2..590917d2722aa15873dc57f9555a8b8a5550c4b7 100644 (file)
@@ -118,7 +118,7 @@ public:
                }
                if (resultLength) {
                        //the bug is that uenum_next doesn't set the length
-                       *resultLength = (length == -1) ? strlen(str) : length;
+                       *resultLength = (length == -1) ? (int32_t)strlen(str) : length;
                }
 
                return str;