[warning-fix][signed-unsigned-comparison]

This commit is contained in:
tpaviot
2011-08-09 23:28:59 +02:00
parent 63295f15cd
commit f479cf461c
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ HASHinsert( Hash_TableP t, char * s, void * data ) {
Hash_TableP
HASHcreate( unsigned count ) {
int i;
unsigned int i;
Hash_TableP table;
/*
@@ -348,7 +348,7 @@ HASHhash( char * Key, Hash_TableP table ) {
}
h %= PRIME2;
address = MOD( h, table->maxp );
if( address < table->p ) {
if( (int)address < table->p ) {
address = MOD( h, ( table->maxp << 1 ) ); /* h % (2*table->maxp) */
}
return( address );
+1 -1
View File
@@ -547,7 +547,7 @@ SCHEMAprint( Schema schema, FILES * files, Express model, void * complexCol,
Procedure p;
DictionaryEntry de;
char * tmpstr = 0;
int tmpstr_size = 0;
unsigned int tmpstr_size = 0;
/********** create files based on name of schema ***********/
/* return if failure */
/* 1. header file */