trying to make Str.toNum work for Ints

This commit is contained in:
Anton-4 2021-12-01 20:37:21 +01:00
parent 2e21fd0cb9
commit e63701c5d1
6 changed files with 6 additions and 15 deletions

View file

@ -5269,6 +5269,7 @@ fn run_low_level<'a, 'ctx, 'env>(
str_ends_with(env, scope, args[0], args[1])
}
StrToNum => {
// Str.toNum : Str -> Result (Num *) {}
debug_assert_eq!(args.len(), 1);
let (string, _string_layout) = load_symbol_and_layout(scope, &args[0]);