Skip to content
Snippets Groups Projects
Commit 51336f9e authored by Ryan Szrama's avatar Ryan Szrama
Browse files

Fix a cast to cast when converting an amount to an integer.

parent df9de235
No related branches found
Tags 7.x-1.0-beta1
No related merge requests found
......@@ -454,7 +454,7 @@ function commerce_currency_amount_to_integer($amount, $currency_code) {
// Ensure the amount has the proper number of decimal places for the currency.
$amount = commerce_currency_round($amount, commerce_currency_load($currency_code));
return (int) $amount * $factors[$currency_code];
return (int) ($amount * $factors[$currency_code]);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment