diff -r ae5f7be2b4ab -r 3111b45a2bbf mercurial/parsers.c --- a/mercurial/parsers.c Tue Sep 29 00:18:49 2015 -0700 +++ b/mercurial/parsers.c Wed Oct 14 02:40:04 2015 +0900 @@ -551,9 +551,9 @@ Py_ssize_t nbytes, pos, l; PyObject *k, *v = NULL, *pn; char *p, *s; - double now; + int now; - if (!PyArg_ParseTuple(args, "O!O!Od:pack_dirstate", + if (!PyArg_ParseTuple(args, "O!O!Oi:pack_dirstate", &PyDict_Type, &map, &PyDict_Type, ©map, &pl, &now)) return NULL; @@ -622,7 +622,7 @@ mode = tuple->mode; size = tuple->size; mtime = tuple->mtime; - if (state == 'n' && mtime == (uint32_t)now) { + if (state == 'n' && mtime == now) { /* See pure/parsers.py:pack_dirstate for why we do * this. */ mtime = -1;