aboutsummaryrefslogtreecommitdiff
path: root/src/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-18 15:52:21 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-18 15:52:21 -0400
commit171d80ac1e5bd006c2c600f36a42440dfb635605 (patch)
treef1eaf76cbea586cb786dc1d23828a5c8d48e30b4 /src/environment.c
parent8542662b34eaee9801b077838049152881aa0b93 (diff)
Make Int.prev_prime() optional instead of erroring
Diffstat (limited to 'src/environment.c')
-rw-r--r--src/environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/environment.c b/src/environment.c
index 35c76fe5..651bc9ca 100644
--- a/src/environment.c
+++ b/src/environment.c
@@ -121,7 +121,7 @@ env_t *global_env(bool source_mapping)
{"power", "Int$power", "func(base:Int,exponent:Int -> Int)"},
#if __GNU_MP_VERSION >= 6
#if __GNU_MP_VERSION_MINOR >= 3
- {"prev_prime", "Int$prev_prime", "func(x:Int -> Int)"},
+ {"prev_prime", "Int$prev_prime", "func(x:Int -> Int?)"},
#endif
#endif
{"right_shifted", "Int$right_shifted", "func(x,y:Int -> Int)"},