flesh out string -> integer functions

This commit is contained in:
Allen Webster
2021-06-28 10:45:55 -04:00
parent e9c5f28e4b
commit 15aa4d5b32
5 changed files with 94 additions and 49 deletions
+3 -1
View File
@@ -462,7 +462,9 @@ MD_C_EvaluateExpr_I64(MD_C_Expr *expr)
_MD_BinaryOp(Multiply, *);
_MD_BinaryOp(Divide, /);
#undef _MD_BinaryOp
case MD_C_ExprKind_Atom: { result = MD_I64FromString(expr->node->string, 10); }break;
case MD_C_ExprKind_Atom: {
result = MD_CStyleIntFromString(expr->node->string);
}break;
default: break;
}
return result;