Merge pull request #4999 from JakubValtar/fix-preproc-comments

Fix preproc skipping one char after a block comment
This commit is contained in:
Ben Fry
2017-04-17 13:21:28 -04:00
committed by GitHub

View File

@@ -811,7 +811,7 @@ public class PdePreprocessor {
boolean terminated = false;
while (i < length - 1) {
if ((program.charAt(i) == '*') && (program.charAt(i + 1) == '/')) {
i += 2;
i++; // advance to the ending '/'
terminated = true;
break;
} else {