fix: bitcode functions needed the str namespace not num

This commit is contained in:
rvcas 2021-12-01 16:40:56 -05:00
parent 0d74daf7d9
commit d6ab0b6aa4
2 changed files with 11 additions and 3 deletions

View file

@ -94,7 +94,6 @@ comptime {
inline for (INTEGERS) |T| {
num.exportPow(T, ROC_BUILTINS ++ "." ++ NUM ++ ".pow_int.");
num.exportDivCeil(T, ROC_BUILTINS ++ "." ++ NUM ++ ".div_ceil.");
num.exportParseInt(T, ROC_BUILTINS ++ "." ++ NUM ++ ".to_int.");
}
inline for (FLOATS) |T| {
@ -132,6 +131,11 @@ comptime {
inline for (INTEGERS) |T| {
str.exportFromInt(T, ROC_BUILTINS ++ "." ++ STR ++ ".from_int.");
num.exportParseInt(T, ROC_BUILTINS ++ "." ++ STR ++ ".to_int.");
}
inline for (FLOATS) |T| {
num.exportParseFloat(T, ROC_BUILTINS ++ "." ++ STR ++ ".to_float.");
}
}