# HG changeset patch # User André Sintzoff # Date 2015-04-04 09:27:15 # 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 --git a/mercurial/parsers.c b/mercurial/parsers.c --- a/mercurial/parsers.c +++ b/mercurial/parsers.c @@ -189,7 +189,7 @@ static PyObject *make_file_foldmap(PyObj &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;