add error for dividing by zero in static function evaluation

This commit is contained in:
Andrew Kelley committed 2016-04-12 16:18:41 -07:00
1 parent be4df96e4b
commit 69109bc270
6 files changed
+65 -58

No files matched your search

+2
View File
@@ -12,6 +12,8 @@ const char *err_str(int err) {
case ErrorFileNotFound: return "file not found";
case ErrorFileSystem: return "file system error";
case ErrorFileTooBig: return "file too big";
case ErrorDivByZero: return "division by zero";
case ErrorOverflow: return "overflow";
}
return "(invalid error)";
}