]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - exec.c
Implement constant folding on ternary operations via fold_cond.
[xonotic/gmqcc.git] / exec.c
diff --git a/exec.c b/exec.c
index 1856248bcab4a88ed50725ea9df53b82766580d4..c4de8addec619b8d9521a7925d258d17907abcae 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -30,7 +30,6 @@
 
 #include "gmqcc.h"
 
-opts_cmd_t   opts; /* command line options */
 static void loaderror(const char *fmt, ...)
 {
     int     err = errno;
@@ -1256,7 +1255,7 @@ void prog_disasm_function(qc_program_t *prog, size_t id) {
 #   define FLOAT_IS_TRUE_FOR_INT(x) ( (x) & 0x7FFFFFFF )
 #endif
 
-while (1) {
+while (prog->vmerror == 0) {
     prog_section_function_t  *newf;
     qcany_t          *ed;
     qcany_t          *ptr;