Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
for once, %zu->%lu
authordegomme <augustin.degomme@unibas.ch>
Fri, 11 Mar 2016 15:26:53 +0000 (16:26 +0100)
committerdegomme <augustin.degomme@unibas.ch>
Fri, 11 Mar 2016 15:26:53 +0000 (16:26 +0100)
examples/smpi/NAS/ep.c

index 3695996..28696c2 100644 (file)
@@ -73,7 +73,7 @@ int main(int argc, char **argv) {
      * (internal file)
      */
     fprintf(stdout," NAS Parallel Benchmarks 3.2 -- EP Benchmark");
-    sprintf(size,"%zu",(unsigned long)pow(2,m+1));
+    sprintf(size,"%lu",(unsigned long)pow(2,m+1));
     //size = size.replace('.', ' ');
     fprintf(stdout," Number of random numbers generated: %s\n",size);
     fprintf(stdout," Number of active processes: %d\n",no_nodes);