Fix for bug #81. Thanks to ggn for the patch!
authorShamus Hammons <jlhamm@acm.org>
Thu, 22 Sep 2016 15:44:16 +0000 (10:44 -0500)
committerShamus Hammons <jlhamm@acm.org>
Thu, 22 Sep 2016 15:44:16 +0000 (10:44 -0500)
direct.c
rmac.c
version.h

index 3ae88cafa7bcf642d7fd0a2f78af14210ca04f65..dc44e8e62371b5b5eb72229801c8800bd347fdf6 100644 (file)
--- a/direct.c
+++ b/direct.c
@@ -1613,5 +1613,7 @@ int d_opt(void)
                else
                        return error(".opt directive needs every switch enclosed inside quotation marks");
        }
+
+       return OK;
 }
 
diff --git a/rmac.c b/rmac.c
index cde6e123784b972cf676b38a04d208b34f7e9a39..4e8234603be2f6f85a61d1fe69fc06630d353651 100644 (file)
--- a/rmac.c
+++ b/rmac.c
@@ -195,7 +195,10 @@ int ParseOptimization(char * optstring)
                int opt_no = atoi(&optstring[2]);
 
                if ((opt_no >= 0) && (opt_no < OPT_COUNT))
+               {
                        optim_flags[opt_no] = onoff;
+                       return OK;
+               }
                else
                        return ERROR;
        }
index 588461499eb1c0bd6a88b7b61514238b93f52f6e..38336642307e3e7c21d12951998d00950a526f81 100644 (file)
--- a/version.h
+++ b/version.h
@@ -13,6 +13,6 @@
 
 #define MAJOR   1              // Major version number
 #define MINOR   4              // Minor version number
-#define PATCH   17             // Patch release number
+#define PATCH   18             // Patch release number
 
 #endif // __VERSION_H__