diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-24 16:18:21 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-24 16:18:21 -0500 |
| commit | 1e3fb8a2c0cca385d65c52679411b118b5fb4641 (patch) | |
| tree | e8e7ae5b4a8b4f39ed867c238f1a05494b6a50ac /stdlib/integers.c | |
| parent | 0e10313d64f54dd587ebbcd5f413bd999333c911 (diff) | |
Rename "NULL" to "NONE"
Diffstat (limited to 'stdlib/integers.c')
| -rw-r--r-- | stdlib/integers.c | 4 |
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); } |
