diff mercurial/parsers.c @ 24622:1e05f11619bb

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
author Andr? Sintzoff <andre.sintzoff@gmail.com>
date Sat, 04 Apr 2015 11:27:15 +0200
parents 670aaee7931c
children 2262d7bc469e
line wrap: on
line diff
--- 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;