File: gcc_10_ftbfs.patch

package info (click to toggle)
grfcodec 6.0.6-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,200 kB
  • sloc: cpp: 12,624; ansic: 748; makefile: 198; perl: 132; sh: 77
file content (16 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix compilation error when compiling with gcc 10
Author: Matthijs Kooijman <matthijs@stdin.nl>
Forwarded: https://github.com/OpenTTD/grfcodec/pull/6
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=957307
Bug: https://github.com/OpenTTD/grfcodec/issues/5
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -300,7 +300,7 @@ bool parse_comment(const string&line){
 		break;
 	case BEAUTIFY:{
 		commandstream>>command_part;
-		uint val=find_command(command_part,beaut),togglebit;
+		int val=find_command(command_part,beaut),togglebit;
 		if(val!=(uint)-1&&val!=OFF)_commandState.beautifier=true;
 		switch(val){
 		case -1: