Skip to content

Commit cf9e218

Browse files
committed
Don't slice rethrow exception
1 parent 6344f83 commit cf9e218

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tinyexpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2488,7 +2488,7 @@ te_expr* te_parser::te_compile(const std::string_view expression, std::set<te_va
24882488
// parsed OK, but there was an evaluation error;
24892489
// clean up and throw the message back up to compile()
24902490
te_free(root);
2491-
throw exp;
2491+
throw;
24922492
}
24932493
m_errorPos = te_parser::npos;
24942494
return root;

0 commit comments

Comments
 (0)