Skip to content

Commit

Permalink
Spooky compare call
Browse files Browse the repository at this point in the history
  • Loading branch information
flashultra committed Dec 16, 2024
1 parent 27e52a9 commit 6596762
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions std/haxe/math/bigint/BigIntArithmetic.hx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ class BigIntArithmetic {
returns 0 (`a == b`).
**/
public static function compare(a6:BigInt_, b:BigInt_):Int {
#if lua
trace("______________Compare(b): "+b);
trace("______________Compare(a): "+a6);
if (a6 == null)
haxe.CallStack.toString(haxe.CallStack.exceptionStack());
#end
if (a6 != b) {
var c:Int = (a6.sign() & 2) + (b.sign() & 1);
switch (c) {
Expand Down
3 changes: 3 additions & 0 deletions std/haxe/math/bigint/BigInt_.hx
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,9 @@ class BigInt_ {

do {
do {
#if lua
trace("bitLength: "+this.bitLength());
#end
num = random(this.bitLength());
#if lua
trace("num: "+num);
Expand Down

0 comments on commit 6596762

Please sign in to comment.