diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/map.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/map.c b/src/resources/map.c index e190282..38928d3 100644 --- a/src/resources/map.c +++ b/src/resources/map.c @@ -535,10 +535,10 @@ tmx_data_end(void *pv, const char *name) for (i = 0; i < decomp_len / 4; ++i) { /* Convert each tile GID to the system's byte order. */ ly->tiles[i] = - (decomp_buf[i * 4 + 0] & 0xFF << 000) | - (decomp_buf[i * 4 + 1] & 0xFF << 010) | - (decomp_buf[i * 4 + 2] & 0xFF << 020) | - (decomp_buf[i * 4 + 3] & 0xFF << 030); + (decomp_buf[i * 4 + 0] & (Uint32) 0xFF << 000) | + (decomp_buf[i * 4 + 1] & (Uint32) 0xFF << 010) | + (decomp_buf[i * 4 + 2] & (Uint32) 0xFF << 020) | + (decomp_buf[i * 4 + 3] & (Uint32) 0xFF << 030); } free(decomp_buf); xml_node_pop(p); |