]> ocean-lang.org Git - ocean/commitdiff
scanner: fix typo in testing ignored flagged
authorNeilBrown <neil@brown.name>
Tue, 28 May 2019 05:49:36 +0000 (15:49 +1000)
committerNeilBrown <neil@brown.name>
Tue, 28 May 2019 05:49:36 +0000 (15:49 +1000)
Use '&' to test a bit, not '&&' !!!

Signed-off-by: NeilBrown <neil@brown.name>
csrc/scanner.mdc

index 9a1ea7144b612a6624e39d799921c37682d46c99..e90690a00db57879d49840f2ea2c18f2425e7633 100644 (file)
@@ -368,7 +368,7 @@ Known marks are included in the same list as the list of known words.
                prev = ch;
                save_unget_state(state);
                ch = get_char(state);
-               if (!(ignored && (1<<TK_string)) && n < 0 &&is_quote(ch) && !is_quote(prev))
+               if (!(ignored & (1<<TK_string)) && n < 0 &&is_quote(ch) && !is_quote(prev))
                        /* If strings are allowed, a quote (Which isn't a known mark)
                         * mustn't be treated as part of an unknown mark.  It can be
                         * part of a multi-line srtings though.