forked from pool/spooles
OBS-URL: https://build.opensuse.org/package/show/science/spooles?expand=0&rev=1
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
--- spooles-2.2/I2Ohash/src/util.c~ 1998-05-30 18:45:12.000000000 -0400
|
|
+++ spooles-2.2/I2Ohash/src/util.c 2008-06-28 20:56:49.000000000 -0400
|
|
@@ -39,9 +39,10 @@
|
|
*/
|
|
loc1 = (key1 + 1) % hashtable->nlist ;
|
|
loc2 = (key2 + 1) % hashtable->nlist ;
|
|
-loc = (loc1*loc2) % hashtable->nlist ;
|
|
+long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ;
|
|
+loc =(int) loc3;
|
|
#if MYDEBUG > 0
|
|
-fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %d", loc1, loc2, loc) ;
|
|
+fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %ld, loc = %d", loc1, loc2, loc3, loc) ;
|
|
fflush(stdout) ;
|
|
#endif
|
|
/*
|
|
@@ -158,9 +159,10 @@
|
|
#endif
|
|
loc1 = (key1 + 1) % hashtable->nlist ;
|
|
loc2 = (key2 + 1) % hashtable->nlist ;
|
|
-loc = (loc1*loc2) % hashtable->nlist ;
|
|
+long int loc3 = (long int)loc1*(long int)loc2 % hashtable->nlist ;
|
|
+loc =(int) loc3;
|
|
#if MYDEBUG > 0
|
|
-fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %d", loc1, loc2, loc) ;
|
|
+fprintf(stdout, "\n loc1 = %d, loc2 = %d, loc3 = %ld, loc = %d", loc1, loc2, loc3, loc) ;
|
|
fflush(stdout) ;
|
|
#endif
|
|
/*
|