Browse Source

fix Syntax Warning

Gitea 4 years ago
parent
commit
011c8d5cda
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/tokenizer.cpp

+ 1 - 1
src/tokenizer.cpp

@@ -478,7 +478,7 @@ void syntax_warning_va(Token token, char const *fmt, va_list va) {
 		// NOTE(bill): Duplicate error, skip it
 		if (global_error_collector.prev != token.pos) {
 			global_error_collector.prev = token.pos;
-			error_out("%S Syntax Warning: %s\n",
+			error_out("%s Syntax Warning: %s\n",
 			          token_pos_to_string(token.pos),
 			          gb_bprintf_va(fmt, va));
 		} else if (token.pos.line == 0) {