summaryrefslogtreecommitdiffhomepage
path: root/php_imlib.c
diff options
context:
space:
mode:
authorPiotr Pawłow <pp@siedziba.pl>2016-09-23 04:42:56 +0200
committerPiotr Pawłow <pp@siedziba.pl>2016-09-23 05:30:44 +0200
commit78c0f18033a455df84f4edb74c1a861cf8842629 (patch)
tree18be77e48fa79f53ac1259d7ac1972f1f88a014e /php_imlib.c
parent384954403a69dbc317b64e067d21e15370484fbb (diff)
Bugfix in imlib_psbbox: angle is a double.
Diffstat (limited to 'php_imlib.c')
-rw-r--r--php_imlib.c2
1 files changed, 1 insertions, 1 deletions
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);