[tor-commits] [tor/master] Fix compiler warning on test_status.c

nickm at torproject.org nickm at torproject.org
Tue Apr 15 19:19:46 UTC 2014


commit 1126ce1d86e925097c855a33c6a33638e086d35e
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Apr 15 15:19:41 2014 -0400

    Fix compiler warning on test_status.c
---
 src/test/test_status.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/test_status.c b/src/test/test_status.c
index 09c9935..b704053 100644
--- a/src/test/test_status.c
+++ b/src/test/test_status.c
@@ -223,7 +223,7 @@ NS(test_main)(void *arg)
   tor_free(actual);
 
   expected = "10.00 GB";
-  actual = bytes_to_usage((1 << 30) * 10L);
+  actual = bytes_to_usage((U64_LITERAL(1) << 30) * 10L);
   tt_str_op(actual, ==, expected);
   tor_free(actual);
 



More information about the tor-commits mailing list