]> granicus.if.org Git - php/commitdiff
Use ZEND_STRL macro for builtin_types
authorAndrea Faulds <ajf@ajf.me>
Mon, 9 Nov 2015 11:15:58 +0000 (11:15 +0000)
committerAndrea Faulds <ajf@ajf.me>
Mon, 9 Nov 2015 11:15:58 +0000 (11:15 +0000)
Zend/zend_compile.c

index c3e93845560b50a662166e2ee4186c6624d51a6a..7044b6b94587ffb40cdb0dd6b147fb2a976a4e68 100644 (file)
@@ -190,10 +190,10 @@ typedef struct _builtin_type_info {
 } builtin_type_info;
 
 static const builtin_type_info builtin_types[] = {
-       {"int", sizeof("int") - 1, IS_LONG},
-       {"float", sizeof("float") - 1, IS_DOUBLE},
-       {"string", sizeof("string") - 1, IS_STRING},
-       {"bool", sizeof("bool") - 1, _IS_BOOL},
+       {ZEND_STRL("int"), IS_LONG},
+       {ZEND_STRL("float"), IS_DOUBLE},
+       {ZEND_STRL("string"), IS_STRING},
+       {ZEND_STRL("bool"), _IS_BOOL},
        {NULL, 0, IS_UNDEF}
 };