Skip to content

Commit

Permalink
mapshape.c: avoid 'undefined-shift' issue with SWAP_FOUR_BYTES() macro (
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 6, 2022
1 parent f60c84e commit 98944a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mapshape.c
Expand Up @@ -43,9 +43,7 @@
#include <ogr_srs_api.h>

/* Only use this macro on 32-bit integers! */
#define SWAP_FOUR_BYTES(data) \
( ((data >> 24) & 0x000000FF) | ((data >> 8) & 0x0000FF00) | \
((data << 8) & 0x00FF0000) | ((data << 24) & 0xFF000000) )
#define SWAP_FOUR_BYTES(data) CPL_SWAP32(data)


#define ByteCopy( a, b, c ) memcpy( b, a, c )
Expand Down

0 comments on commit 98944a3

Please sign in to comment.