Skip to content

Commit a9301a0

Browse files
authored
Merge pull request #32 from bobvandevijver/patch-1
Fix #31: Use qcopy variant for abs calculation
2 parents 2b0a173 + 8d6a691 commit a9301a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ static void php_decimal_shift(php_decimal_t *res, mpd_t *op1, zend_long places)
11571157
static void php_decimal_abs(php_decimal_t *res, mpd_t *op1)
11581158
{
11591159
uint32_t status = 0;
1160-
mpd_qabs(PHP_DECIMAL_MPD(res), op1, php_decimal_context(), &status);
1160+
mpd_qcopy_abs(PHP_DECIMAL_MPD(res), op1, &status);
11611161
}
11621162

11631163
/**

0 commit comments

Comments
 (0)