Skip to content

Commit

Permalink
Fix infinite loop on x86 architectures in CardinalNumeral
Browse files Browse the repository at this point in the history
  • Loading branch information
wapmorgan committed Jul 11, 2017
1 parent 852ad2b commit a31ccc1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/English/CardinalNumeral.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ class CardinalNumeral extends NumeralCreation {
);

static public $exponents = array(
100 => 'hundred',
1000 => 'thousand',
1000000 => 'million',
1000000000 => 'billion',
1000000000000 => 'trillion',
'100' => 'hundred',
'1000' => 'thousand',
'1000000' => 'million',
'1000000000' => 'billion',
'1000000000000' => 'trillion',
);

static public function getCases($number) {}
Expand Down
9 changes: 5 additions & 4 deletions src/Russian/CardinalNumeral.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ class CardinalNumeral extends NumeralCreation implements Cases {
);

static protected $exponents = array(
1000 => 'тысяча',
1000000 => 'миллион',
1000000000 => 'миллиард',
1000000000000 => 'триллион',
'1000' => 'тысяча',
'1000000' => 'миллион',
'1000000000' => 'миллиард',
'1000000000000' => 'триллион',
'1000000000000000' => 'квадриллион',
);

static protected $precalculated = array(
Expand Down

0 comments on commit a31ccc1

Please sign in to comment.