[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix clang warning on d4285f03df475dc. Not in any released tor.



commit da3edc4df0783778833b6f8660f73047a280e308
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Jun 29 00:22:57 2012 -0400

    Fix clang warning on d4285f03df475dc. Not in any released tor.
---
 src/common/util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/common/util.c b/src/common/util.c
index 4850e04..492ea32 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2872,7 +2872,7 @@ tor_vsscanf(const char *buf, const char *pattern, va_list ap)
           unsigned *out = va_arg(ap, unsigned *);
           if (u > UINT_MAX)
             return n_matched;
-          *out = u;
+          *out = (unsigned) u;
         }
         ++pattern;
         ++n_matched;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits