]> granicus.if.org Git - php/commitdiff
sz is long not zval**
authorRob Richards <rrichards@php.net>
Mon, 22 Sep 2008 15:30:59 +0000 (15:30 +0000)
committerRob Richards <rrichards@php.net>
Mon, 22 Sep 2008 15:30:59 +0000 (15:30 +0000)
ext/gd/gd.c

index 5b6538fa6a3f61215a2bfd1a7a7280323973d965..66fbdaac65311d7b76d6f9642cc1c5d99e7713d2 100644 (file)
@@ -4231,10 +4231,10 @@ PHP_FUNCTION(imagepsbbox)
        /*
        printf("%d %d %d %d\n", str_bbox.llx, str_bbox.lly, str_bbox.urx, str_bbox.ury);
        */
-       add_next_index_long(return_value, (int) ceil(((double) str_bbox.llx)*Z_LVAL_PP(sz)/1000));
-       add_next_index_long(return_value, (int) ceil(((double) str_bbox.lly)*Z_LVAL_PP(sz)/1000));
-       add_next_index_long(return_value, (int) ceil(((double) str_bbox.urx)*Z_LVAL_PP(sz)/1000));
-       add_next_index_long(return_value, (int) ceil(((double) str_bbox.ury)*Z_LVAL_PP(sz)/1000));
+       add_next_index_long(return_value, (int) ceil(((double) str_bbox.llx)*sz/1000));
+       add_next_index_long(return_value, (int) ceil(((double) str_bbox.lly)*sz/1000));
+       add_next_index_long(return_value, (int) ceil(((double) str_bbox.urx)*sz/1000));
+       add_next_index_long(return_value, (int) ceil(((double) str_bbox.ury)*sz/1000));
 }
 /* }}} */
 #endif