]> git.ipfire.org Git - people/ms/suricata.git/blobdiff - src/util-clock.h
warning: explicit casts to double
[people/ms/suricata.git] / src / util-clock.h
index e6e3517b9934d3326552c61709e0043bb9b7569d..0ac7a3207d377a0e05f67ed33ec292d44016315a 100644 (file)
@@ -33,7 +33,8 @@
 
 #define CLOCK_END           clo2 = clock()
 
-#define CLOCK_PRINT_SEC     printf("Seconds spent: %.4fs\n", ((clo2 - clo1)/(double)CLOCKS_PER_SEC))
+#define CLOCK_PRINT_SEC                                                                            \
+    printf("Seconds spent: %.4fs\n", ((double)(clo2 - clo1) / (double)CLOCKS_PER_SEC))
 
 #define GET_CLOCK_END_SECS  ((clo1 - clo2)/(double)CLOCKS_PER_SEC)