diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-08-23 11:38:54 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-08-23 11:38:54 -0400 |
| commit | dceb9255736c69538293ee551272cda1b03a9fd3 (patch) | |
| tree | fdb4e6947b80db01fa85b6de0c15670dddf83c52 /environment.c | |
| parent | ad51b208b4924d04f1d6a804178a67994b4f9e59 (diff) | |
Bugfix for parsing ints
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/environment.c b/environment.c index 248588fd..f1d2a042 100644 --- a/environment.c +++ b/environment.c @@ -95,7 +95,7 @@ env_t *new_compilation_unit(CORD *libname) {"clamped", "Int$clamped", "func(x:Int,low:Int,high:Int)->Int"}, {"divided_by", "Int$divided_by", "func(x:Int,y:Int)->Int"}, {"format", "Int$format", "func(i:Int, digits=0)->Text"}, - {"from_text", "Int$from_text", "func(text:Text, the_rest=!&Text)->Int"}, + {"from_text", "Int$from_text", "func(text:Text, success=!&Bool)->Int"}, {"hex", "Int$hex", "func(i:Int, digits=0, uppercase=yes, prefix=yes)->Text"}, {"is_prime", "Int$is_prime", "func(x:Int,reps=50)->Bool"}, {"left_shifted", "Int$left_shifted", "func(x:Int,y:Int)->Int"}, @@ -137,7 +137,7 @@ env_t *new_compilation_unit(CORD *libname) {"clamped", "Int32$clamped", "func(x:Int32,low:Int32,high:Int32)->Int32"}, {"divided_by", "Int32$divided_by", "func(x:Int32,y:Int32)->Int32"}, {"format", "Int32$format", "func(i:Int32, digits=0)->Text"}, - {"from_text", "Int$from_text", "func(text:Text, the_rest=!&Text)->Int32"}, + {"from_text", "Int32$from_text", "func(text:Text, the_rest=!&Text)->Int32"}, {"hex", "Int32$hex", "func(i:Int32, digits=0, uppercase=yes, prefix=yes)->Text"}, {"max", "Int32$max", "Int32"}, {"min", "Int32$min", "Int32"}, @@ -153,7 +153,7 @@ env_t *new_compilation_unit(CORD *libname) {"clamped", "Int16$clamped", "func(x:Int16,low:Int16,high:Int16)->Int16"}, {"divided_by", "Int16$divided_by", "func(x:Int16,y:Int16)->Int16"}, {"format", "Int16$format", "func(i:Int16, digits=0)->Text"}, - {"from_text", "Int$from_text", "func(text:Text, the_rest=!&Text)->Int16"}, + {"from_text", "Int16$from_text", "func(text:Text, the_rest=!&Text)->Int16"}, {"hex", "Int16$hex", "func(i:Int16, digits=0, uppercase=yes, prefix=yes)->Text"}, {"max", "Int16$max", "Int16"}, {"min", "Int16$min", "Int16"}, @@ -169,7 +169,7 @@ env_t *new_compilation_unit(CORD *libname) {"clamped", "Int8$clamped", "func(x:Int8,low:Int8,high:Int8)->Int8"}, {"divided_by", "Int8$divided_by", "func(x:Int8,y:Int8)->Int8"}, {"format", "Int8$format", "func(i:Int8, digits=0)->Text"}, - {"from_text", "Int$from_text", "func(text:Text, the_rest=!&Text)->Int8"}, + {"from_text", "Int8$from_text", "func(text:Text, the_rest=!&Text)->Int8"}, {"hex", "Int8$hex", "func(i:Int8, digits=0, uppercase=yes, prefix=yes)->Text"}, {"max", "Int8$max", "Int8"}, {"min", "Int8$min", "Int8"}, |
