Bugfix in imlib_psbbox: angle is a double.

Piotr Pawłow [2016-09-23 02:42:56]
Bugfix in imlib_psbbox: angle is a double.
Filename
php_imlib.c
diff --git a/php_imlib.c b/php_imlib.c
index 478d649..060886b 100644
--- a/php_imlib.c
+++ b/php_imlib.c
@@ -2791,7 +2791,7 @@ PHP_FUNCTION(imlib_psbbox)
 	double angle = 0, sin_a = 0, cos_a = 0;
 	BBox char_bbox, str_bbox = {0, 0, 0, 0};

-        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "srl|lll", &str, &str_len, &fnt, &sz, &space, &add_width, &angle) == FAILURE) return;
+        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "srl|lld", &str, &str_len, &fnt, &sz, &space, &add_width, &angle) == FAILURE) return;
 	angle = angle * M_PI / 180;
 	sin_a = sin(angle);
 	cos_a = cos(angle);
ViewGit