Skip to content

Commit

Permalink
Cast error on mac.
Browse files Browse the repository at this point in the history
Yet again fixing the tests...
Y-Less committed Jun 30, 2018
1 parent 2f33bba commit 000b4d5
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/compiler/sc2.c
Original file line number Diff line number Diff line change
@@ -520,7 +520,7 @@ static void stripcomment(unsigned char *line)
if (icomment==2)
*line++=' ';
} else if (*line=='/' && *(line+1)=='/'){ /* comment to end of line */
continuation=line;
continuation=(char*)line;
while ((continuation=strchr(continuation,'\a'))!=NULL){
/* don't give the error if the next line is also commented out.
it is quite annoying to get an error for commenting out a define using:
4 changes: 2 additions & 2 deletions source/compiler/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -20,8 +20,8 @@ set_tests_properties(gh_217 PROPERTIES PASS_REGULAR_EXPRESSION ".*\\.pwn\\(11\\)
.*\\.pwn\\(13\\) : warning 237: user warning: this is warning 2
.*\\.pwn\\(15\\) : warning 237: user warning: this is warning 3
.*\\.pwn\\(17\\) : warning 237: user warning: this is warning 4
.*\\.pwn\\(27\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
.*\\.pwn\\(32\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
.*\\.pwn\\(28\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
.*\\.pwn\\(33\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
")

add_compiler_test(reset_errline_gh_230 ${CMAKE_CURRENT_SOURCE_DIR}/reset_errline_gh_230.pwn)

0 comments on commit 000b4d5

Please sign in to comment.