diff directive.c @ 109:4483a14ee101

Make -Wcomment work again
author David A. Holland
date Tue, 11 Jun 2013 12:26:20 -0400
parents 343af355df1b
children a0a86380456e
line wrap: on
line diff
--- a/directive.c	Tue Jun 11 12:17:27 2013 -0400
+++ b/directive.c	Tue Jun 11 12:26:20 2013 -0400
@@ -542,12 +542,14 @@
 			} else {
 				incomment = true;
 			}
+			pos++;
 		} else if (line[pos] == '*' && line[pos+1] == '/') {
 			if (incomment) {
 				incomment = false;
 			} else {
 				/* stray end-comment; should we care? */
 			}
+			pos++;
 		}
 		if (line[pos] == '\n') {
 			p2.line++;