[tor-commits] [tor/master] add missing atoi for cosmetic reasons

nickm at torproject.org nickm at torproject.org
Thu May 19 20:01:41 UTC 2016


commit ae7e2b9a7cd95ad04d3d416fd58cc20f8c4f06bd
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu May 19 16:01:25 2016 -0400

    add missing atoi for cosmetic reasons
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8465b43..f8cad48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -812,7 +812,7 @@ if test "$have_clang" = "yes"; then
 	  int main(int argc, char **argv)
 	  {
             int64_t x = ((int64_t)atoi(argv[1])) * (int64_t)atoi(argv[2])
-	                * (int64_t)argv[3];
+	                * (int64_t)atoi(argv[3]);
 	    return x == 9;
 	  } ]])],
 	  [ftrapv_can_link=yes; AC_MSG_RESULT([yes])],
@@ -831,7 +831,7 @@ if test "$have_clang" = "yes"; then
 	  int main(int argc, char **argv)
 	  {
             int64_t x = ((int64_t)atoi(argv[1])) * (int64_t)atoi(argv[2])
-	                * (int64_t)argv[3];
+	                * (int64_t)atoi(argv[3]);
 	    return x == 9;
 	  } ]])],
 	  [mulodi_fixes_ftrapv=yes; AC_MSG_RESULT([yes])],





More information about the tor-commits mailing list