Skip to content

Commit 95a353f

Browse files
author
Rudi Theunissen
committed
Update for 1.3.1
1 parent a9301a0 commit 95a353f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
This project follows [Semantic Versioning](http://semver.org/).
44

5+
## [1.3.1] - 2020-02-03
6+
- Fixed `abs` affected by precision. #31 Thanks @bobvandevijver
7+
58
## [1.3.0] - 2019-02-11
69
- Fixed sqrt of -INF returning -INF rather than NAN. #13
710
- Disable opcache pass 2 due to numeric string to float casts. Thanks @krakjoe

package.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
<email>rtheunissen@php.net</email>
1111
<active>yes</active>
1212
</lead>
13-
<date>2019-02-11</date>
14-
<time>10:05:05</time>
13+
<date>2020-02-03</date>
14+
<time>13:11:02</time>
1515
<version>
16-
<release>1.3.0</release>
16+
<release>1.3.1</release>
1717
<api>1.3.0</api>
1818
</version>
1919
<stability>
@@ -22,8 +22,7 @@
2222
</stability>
2323
<license uri="https://opensource.org/licenses/MIT">MIT License</license>
2424
<notes>
25-
- Fixed sqrt of -INF returning -INF rather than NAN. #13
26-
- Disable opcache pass 2 due to numeric string to float casts. Thanks @krakjoe
25+
- Fixed abs affected by precision.
2726
</notes>
2827
<contents>
2928
<dir name="/">

php_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void php_decimal_print(php_decimal_t *obj)
5959
{
6060
char *str;
6161
mpd_to_sci_size(&str, PHP_DECIMAL_MPD(obj), 1);
62-
php_printf("{\n repr: %s\n prec: %ld\n}\n", str, obj->prec);
62+
php_printf("{\n repr: %s\n prec: %ld\n}\n", str, (long) obj->prec);
6363
mpd_free(str);
6464
}
6565

0 commit comments

Comments
 (0)