summaryrefslogtreecommitdiff
path: root/devel/stringencoders/files/patch-speedtest_ascii.c
blob: 6e1f80ae25ccf4a183c076855e74f1696953855b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
--- test/speedtest_ascii.c.orig	Wed Jun  6 13:24:30 2007
+++ test/speedtest_ascii.c	Thu Jun 14 05:39:13 2007
@@ -244,7 +244,7 @@
     }
     t1 = clock();
     last = t1 -t0;
-    printf("%lu\t", (t1-t0));
+    printf("%lu\t", (unsigned long)(t1-t0));
     fflush(stdout);
 
     /**
@@ -255,7 +255,7 @@
         toupper_copy2(obuf, buf, sizeof(buf));
     }
     t1 = clock();
-    printf("%lu\t", (t1-t0));
+    printf("%lu\t", (unsigned long)(t1-t0));
     fflush(stdout);
 
     /**
@@ -266,7 +266,7 @@
         toupper_copy3(obuf, buf, sizeof(buf));
     }
     t1 = clock();
-    printf("%lu\t", (t1-t0));
+    printf("%lu\t", (unsigned long)(t1-t0));
     fflush(stdout);
 
     /**
@@ -277,7 +277,7 @@
         toupper_copy4(obuf, buf, sizeof(buf));
     }
     t1 = clock();
-    printf("%lu\t", (t1-t0));
+    printf("%lu\t", (unsigned long)(t1-t0));
     fflush(stdout);
 
 
@@ -289,7 +289,7 @@
         toupper_copy5(obuf, buf, sizeof(buf));
     }
     t1 = clock();
-    printf("%lu\t", (t1-t0));
+    printf("%lu\t", (unsigned long)(t1-t0));
     fflush(stdout);
 
     /**
@@ -300,7 +300,7 @@
         toupper_copy6(obuf, buf, sizeof(buf));
     }
     t1 = clock();
-    printf("%lu\t", (t1-t0));
+    printf("%lu\t", (unsigned long)(t1-t0));
     fflush(stdout);
 
     /**
@@ -312,7 +312,7 @@
     }
     t1 = clock();
 
-    printf("%lu\t", (t1-t0));
+    printf("%lu\t", (unsigned long)(t1-t0));
     fflush(stdout);
 
     printf("%.1fx\n", last/(t1-t0));