[Ecm-commits] r2647 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Fri Feb 27 16:50:58 CET 2015


Author: zimmerma
Date: 2015-02-27 16:50:58 +0100 (Fri, 27 Feb 2015)
New Revision: 2647

Modified:
   trunk/addlaws.c
Log:
fixed warnings on 32-bit machine


Modified: trunk/addlaws.c
===================================================================
--- trunk/addlaws.c	2015-02-27 15:32:48 UTC (rev 2646)
+++ trunk/addlaws.c	2015-02-27 15:50:58 UTC (rev 2647)
@@ -2010,7 +2010,7 @@
     S = (short *)malloc(Slen * sizeof(short));
     iS = build_add_sub_chain(S, Slen, e, w);
     if(iS == 0){
-	printf("build_NAF: Slen=%lu too small\n", Slen);
+	printf("build_NAF: Slen=%zu too small\n", Slen);
 	return -1;
     }
 #if DEBUG_ADD_LAWS >= 2
@@ -2159,10 +2159,10 @@
     Slen = (2 * GMP_NUMB_BITS * mpz_size(t)) / w;
     S = (short *)malloc(Slen * sizeof(short));
     iS = build_add_sub_chain(S, Slen, t, w);
-    printf("# NAF has %lu terms (w=%d, Slen=%lu): %ldms\n", iS, w, Slen,
+    printf("# NAF has %zu terms (w=%d, Slen=%zu): %ldms\n", iS, w, Slen,
 	   elltime(tp,cputime()));
     if(iS == 0){
-	printf("build_NAF: Slen=%lu too small\n", Slen);
+	printf("build_NAF: Slen=%zu too small\n", Slen);
 	return 0;
     }
     add_sub_pack(s, w, S, iS);



More information about the Ecm-commits mailing list