Skip to content

Commit 000b4d5

Browse files
committed
Cast error on mac.
Yet again fixing the tests...
1 parent 2f33bba commit 000b4d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

source/compiler/sc2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static void stripcomment(unsigned char *line)
520520
if (icomment==2)
521521
*line++=' ';
522522
} else if (*line=='/' && *(line+1)=='/'){ /* comment to end of line */
523-
continuation=line;
523+
continuation=(char*)line;
524524
while ((continuation=strchr(continuation,'\a'))!=NULL){
525525
/* don't give the error if the next line is also commented out.
526526
it is quite annoying to get an error for commenting out a define using:

source/compiler/tests/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ set_tests_properties(gh_217 PROPERTIES PASS_REGULAR_EXPRESSION ".*\\.pwn\\(11\\)
2020
.*\\.pwn\\(13\\) : warning 237: user warning: this is warning 2
2121
.*\\.pwn\\(15\\) : warning 237: user warning: this is warning 3
2222
.*\\.pwn\\(17\\) : warning 237: user warning: this is warning 4
23-
.*\\.pwn\\(27\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
24-
.*\\.pwn\\(32\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
23+
.*\\.pwn\\(28\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
24+
.*\\.pwn\\(33\\) : warning 234: function is deprecated \\(symbol \"f\"\\) don't use this function please
2525
")
2626

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

0 commit comments

Comments
 (0)