Browse Source

Correct math/big

gingerBill 3 years ago
parent
commit
5006674a9b
2 changed files with 2 additions and 7 deletions
  1. 1 6
      core/math/big/helpers.odin
  2. 1 1
      core/math/big/internal.odin

+ 1 - 6
core/math/big/helpers.odin

@@ -788,7 +788,7 @@ destroy_constants :: proc() {
 }
 
 
-assert_if_nil :: proc{assert_if_nil_int, assert_if_nil_rat}
+assert_if_nil :: proc{assert_if_nil_int}
 
 assert_if_nil_int :: #force_inline proc(integers: ..^Int, loc := #caller_location) {
 	for i in integers {
@@ -796,8 +796,3 @@ assert_if_nil_int :: #force_inline proc(integers: ..^Int, loc := #caller_locatio
 	}
 }
 
-assert_if_nil_rat :: #force_inline proc(rationals: ..^Rat, loc := #caller_location) {
-	for r in rationals {
-		assert(r != nil, "(nil)", loc)
-	}
-}

+ 1 - 1
core/math/big/internal.odin

@@ -1042,7 +1042,7 @@ internal_is_initialized :: proc { internal_int_is_initialized, }
 internal_int_is_zero :: #force_inline proc(a: ^Int) -> (zero: bool) {
 	return a.used == 0
 }
-internal_is_zero :: proc { internal_int_is_zero, internal_rat_is_zero }
+internal_is_zero :: proc { internal_int_is_zero }
 
 /*
 	This procedure will return `true` if the `Int` is positive, `false` if not.