parsers.c: avoid implicit conversion loses integer precision warning
authorAndré Sintzoff <andre.sintzoff@gmail.com>
Sat, 04 Apr 2015 11:27:15 +0200
changeset 24622 1e05f11619bb
parent 24620 7c6f9097e2e0
child 24623 2262d7bc469e
parsers.c: avoid implicit conversion loses integer precision warning This warning is raised by Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) and was introduced in 670aaee7931c
mercurial/parsers.c
--- a/mercurial/parsers.c	Fri Apr 03 14:41:18 2015 -0700
+++ b/mercurial/parsers.c	Sat Apr 04 11:27:15 2015 +0200
@@ -189,7 +189,7 @@
 			      &PyFunction_Type, &normcase_fallback))
 		goto quit;
 
-	spec = PyInt_AS_LONG(spec_obj);
+	spec = (int)PyInt_AS_LONG(spec_obj);
 	switch (spec) {
 	case NORMCASE_LOWER:
 		table = lowertable;