# HG changeset patch # User André Sintzoff # Date 1428139635 -7200 # Node ID 1e05f11619bb4256e85fac62cf71c0e3e4639d2e # Parent 7c6f9097e2e03be6630d782114ac312264f7333a 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 diff -r 7c6f9097e2e0 -r 1e05f11619bb 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;