mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-21 10:28:50 +08:00
🐛 safer builtin_logtime
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ void const_str(ast& root)
|
||||
void const_num(ast& root)
|
||||
{
|
||||
auto& vec=root.child();
|
||||
f64 res;
|
||||
f64 res=0;
|
||||
switch(root.type())
|
||||
{
|
||||
case ast_add: res=vec[0].num()+vec[1].num(); break;
|
||||
|
||||
Reference in New Issue
Block a user