Skip to content

Commit

Permalink
Merge pull request #290 from yuxiaomao/dev-hl-bigintparse
Browse files Browse the repository at this point in the history
Add if condition for hl in bigint.Small
  • Loading branch information
fponticelli authored Jul 25, 2024
2 parents a6485f9 + d8eaaa7 commit 76d8741
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/thx/bigint/Small.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Small implements BigIntImpl {
}

public function addSmall(small:Small):BigIntImpl {
#if (cs || java || cpp || neko || flash || eval)
#if (cs || java || cpp || neko || flash || eval || hl)
if (Bigs.canAdd(value, small.value))
#else
if (Bigs.isPrecise(value + small.value))
Expand Down Expand Up @@ -85,7 +85,7 @@ class Small implements BigIntImpl {
return that.isSmall ? multiplySmall(cast that) : multiplyBig(cast that);

public function multiplySmall(small:Small):BigIntImpl {
#if (cs || java || cpp || neko || flash || eval)
#if (cs || java || cpp || neko || flash || eval || hl)
if (Bigs.canMultiply(value, small.value))
#else
if (Bigs.isPrecise(value * small.value))
Expand Down Expand Up @@ -172,7 +172,7 @@ class Small implements BigIntImpl {
}

public function square():BigIntImpl {
#if (cs || java || cpp || neko || flash || eval)
#if (cs || java || cpp || neko || flash || eval || hl)
if (Bigs.canMultiply(value, value))
#else
if (Bigs.isPrecise(value * value))
Expand Down

0 comments on commit 76d8741

Please sign in to comment.