Fix legitimate signed/unsigned comparison warnings.
This commit is contained in:
parent
ed43a537d0
commit
91dc82ca00
4 changed files with 14 additions and 14 deletions
|
|
@ -181,7 +181,7 @@ extend Class SWWMStaticHandler
|
|||
// decode
|
||||
static const int cypher[] = {0xAD,0xEA,0xDB,0xED};
|
||||
String nstr = "";
|
||||
for ( int i=0; i<statestr.length(); i+=2 )
|
||||
for ( uint i=0; i<statestr.length(); i+=2 )
|
||||
{
|
||||
int b, c, a;
|
||||
b = statestr.ByteAt(i);
|
||||
|
|
@ -191,7 +191,7 @@ extend Class SWWMStaticHandler
|
|||
}
|
||||
statestr = nstr;
|
||||
nstr = "";
|
||||
for ( int i=0; i<progstr.length(); i+=2 )
|
||||
for ( uint i=0; i<progstr.length(); i+=2 )
|
||||
{
|
||||
int b, c, a;
|
||||
b = progstr.ByteAt(i);
|
||||
|
|
@ -303,7 +303,7 @@ extend Class SWWMStaticHandler
|
|||
// cheap encode
|
||||
static const int cypher[] = {0xAD,0xEA,0xDB,0xED};
|
||||
String nstr = "";
|
||||
for ( int i=0; i<statestr.length(); i++ )
|
||||
for ( uint i=0; i<statestr.length(); i++ )
|
||||
{
|
||||
int a, b, c;
|
||||
a = statestr.ByteAt(i)^cypher[i%4];
|
||||
|
|
@ -313,7 +313,7 @@ extend Class SWWMStaticHandler
|
|||
}
|
||||
statestr = nstr;
|
||||
nstr = "";
|
||||
for ( int i=0; i<progstr.length(); i++ )
|
||||
for ( uint i=0; i<progstr.length(); i++ )
|
||||
{
|
||||
int a, b, c;
|
||||
a = progstr.ByteAt(i)^cypher[i%4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue