[tor-commits] [tor/maint-0.2.5] Fix a compilation warning in the unit tests

nickm at torproject.org nickm at torproject.org
Thu Jan 15 17:57:14 UTC 2015


commit 2329d9fe3739aca46d00b47222db2f78bd23e4d3
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Jan 15 12:56:57 2015 -0500

    Fix a compilation warning in the unit tests
---
 src/test/test_relaycell.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/test_relaycell.c b/src/test/test_relaycell.c
index 5deb362..9aff6ab 100644
--- a/src/test/test_relaycell.c
+++ b/src/test/test_relaycell.c
@@ -104,7 +104,7 @@ test_relaycell_resolved(void *arg)
       tt_int_op(srm_answer_is_set, ==, 0);                        \
     }                                                             \
     tt_int_op(srm_ttl, ==, ttl);                                  \
-    tt_int_op(srm_expires, ==, expires);                          \
+    tt_i64_op((int64_t)srm_expires, ==, (int64_t)expires);        \
   } while (0)
 
   (void)arg;



More information about the tor-commits mailing list