big: Add workaround for DLL globals bug.

This commit is contained in:
Jeroen van Rijn
2021-08-14 13:51:17 +02:00
parent dc02566a84
commit 0db86a0638
6 changed files with 46 additions and 23 deletions
+6 -6
View File
@@ -206,16 +206,16 @@ demo :: proc() {
a, b, c, d, e, f := &Int{}, &Int{}, &Int{}, &Int{}, &Int{}, &Int{};
defer destroy(a, b, c, d, e, f);
power_of_two(a, 14_500);
print("a: ", a);
atoi(a, "12980742146337069150589594264770969721", 10);
print("a: ", a, 10, true, true, true);
atoi(b, "4611686018427387904", 10);
print("b: ", b, 10, true, true, true);
power_of_two(b, 10_500);
if err := internal_int_divmod(c, d, a, b); err != nil {
if err := internal_divmod(c, d, a, b); err != nil {
fmt.printf("Error: %v\n", err);
}
print("c: ", c);
print("d: ", d);
print("c: ", d);
}
main :: proc() {