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

sequential/ammunition: tighter loop bound for ammunition_strcmp()

parent dd17dde7
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ void *ammunition_memmove ( void *s1, const void *s2, size_t n ) ...@@ -85,7 +85,7 @@ void *ammunition_memmove ( void *s1, const void *s2, size_t n )
int ammunition_strcmp ( const char *str1, const char *str2 ) int ammunition_strcmp ( const char *str1, const char *str2 )
{ {
_Pragma( "loopbound min 1 max 4008" ) _Pragma( "loopbound min 1 max 11" )
while ( *str1 && ( *str1 == *str2 ) ) while ( *str1 && ( *str1 == *str2 ) )
str1++, str2++; str1++, str2++;
return *( const unsigned char * )str1 - *( const unsigned char * )str2; return *( const unsigned char * )str1 - *( const unsigned char * )str2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment