Skip to content

Commit

Permalink
msIsAxisInverted(): avoid undefined-shift on invalid code
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and github-actions[bot] committed Oct 10, 2022
1 parent 6cdf2cd commit f928d00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mapproject.c
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,8 @@ int msProcessProjection(projectionObj *p)
/************************************************************************/
int msIsAxisInverted(int epsg_code)
{
if( epsg_code < 0 )
return MS_FALSE;
const unsigned int row = epsg_code / 8;
const unsigned char index = epsg_code % 8;

Expand Down

0 comments on commit f928d00

Please sign in to comment.