aboutsummaryrefslogtreecommitdiff
path: root/stdlib/integers.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/integers.c')
-rw-r--r--stdlib/integers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/integers.c b/stdlib/integers.c
index 3b95c994..baf1b0c8 100644
--- a/stdlib/integers.c
+++ b/stdlib/integers.c
@@ -303,7 +303,7 @@ public Int_t Int$power(Int_t base, Int_t exponent)
public OptionalInt_t Int$sqrt(Int_t i)
{
if (Int$compare_value(i, I(0)) < 0)
- return NULL_INT;
+ return NONE_INT;
mpz_t result;
mpz_init_set_int(result, i);
mpz_sqrt(result, result);
@@ -327,7 +327,7 @@ public Int_t Int$from_str(const char *str) {
result = mpz_init_set_str(i, str, 10);
}
if (result != 0)
- return NULL_INT;
+ return NONE_INT;
return Int$from_mpz(i);
}