summaryrefslogtreecommitdiffhomepage
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 04:42:56 +0200
commitfdb92460ecd945a37b5a830e781ab9e33e7c5e46 (patch)
treeb78ae79026b591464ca16b3247f32c967f8a9ee2
parent86f18145b0870f07b68dc7f0f44a1a86b79a9a65 (diff)
Bugfix in imlib_psbbox: angle is a double.
-rw-r--r--php_imlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/php_imlib.c b/php_imlib.c
index 84f6a9a..f007ee8 100644
--- a/php_imlib.c
+++ b/php_imlib.c
@@ -2799,7 +2799,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);