mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 15:11:54 +00:00
(svn r4791) - Codechange: Mark road bits as unsigned. Fixes warning with older gcc versions.
This commit is contained in:
parent
c9defc0fea
commit
de12d4a207
10
road.h
10
road.h
@ -4,10 +4,10 @@
|
||||
#define ROAD_H
|
||||
|
||||
typedef enum RoadBits {
|
||||
ROAD_NW = 1,
|
||||
ROAD_SW = 2,
|
||||
ROAD_SE = 4,
|
||||
ROAD_NE = 8,
|
||||
ROAD_NW = 1U,
|
||||
ROAD_SW = 2U,
|
||||
ROAD_SE = 4U,
|
||||
ROAD_NE = 8U,
|
||||
ROAD_X = ROAD_SW | ROAD_NE,
|
||||
ROAD_Y = ROAD_NW | ROAD_SE,
|
||||
ROAD_ALL = ROAD_X | ROAD_Y
|
||||
@ -20,7 +20,7 @@ static inline RoadBits ComplementRoadBits(RoadBits r)
|
||||
|
||||
static inline RoadBits DiagDirToRoadBits(DiagDirection d)
|
||||
{
|
||||
return 1 << (3 ^ d);
|
||||
return 1U << (3 ^ d);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user