Mercurial > hg
comparison hgext/factotum.py @ 20110:40b7c6e4b993
mercurial/parsers.c: fix compiler warning
When try to compile on x64 OS X, I get this warning:
mercurial/parsers.c:931:27: warning: implicit conversion loses integer precision
: 'long' to 'int' [-Wshorten-64-to-32]
? 4 : self->raw_length / 2;
The patch verifies if value of self->raw_length falls bellow INT_MAX; if not,
it raises the ValueError exception.
If value of self->raw_length is greater than 4, it's casted to int type, to
eliminate the warning.
author | Abhay Kadam <abhaykadam88@gmail.com> |
---|---|
date | Tue, 19 Nov 2013 23:49:11 +0530 |
parents | 1d50c69c1f0a |
children | be561a622100 |
comparison
equal
deleted
inserted
replaced
20108:af12f58e2aa0 | 20110:40b7c6e4b993 |
---|