Skip to content
Snippets Groups Projects
Commit dd17dde7 authored by Michael Platzer's avatar Michael Platzer
Browse files

sequential/ammunition: fix loop bound of ammunition_atoi()

parent b7b40f1f
Branches
Tags
No related merge requests found
...@@ -99,7 +99,7 @@ int ammunition_atoi ( const char *str ) ...@@ -99,7 +99,7 @@ int ammunition_atoi ( const char *str )
int readingPos = 0; int readingPos = 0;
if ( str[ 0 ] == '-' || str[ 0 ] == '+' ) if ( str[ 0 ] == '-' || str[ 0 ] == '+' )
readingPos++; readingPos++;
_Pragma( "loopbound min 1 max 1" ) _Pragma( "loopbound min 1 max 7" )
do { do {
result *= 10; result *= 10;
result += str[ readingPos++ ] - 48; result += str[ readingPos++ ] - 48;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment