Mercurial > public > mercurial-scm > hg-stable
diff mercurial/base85.c @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | aecea6934fdd |
children | f42ef9493fa9 |
line wrap: on
line diff
--- a/mercurial/base85.c Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/base85.c Mon Jan 25 00:05:27 2010 -0600 @@ -105,18 +105,24 @@ { c = b85dec[(int)*text++] - 1; if (c < 0) - return PyErr_Format(PyExc_ValueError, "Bad base85 character at position %d", i); + return PyErr_Format( + PyExc_ValueError, + "Bad base85 character at position %d", i); acc = acc * 85 + c; } if (i++ < len) { c = b85dec[(int)*text++] - 1; if (c < 0) - return PyErr_Format(PyExc_ValueError, "Bad base85 character at position %d", i); + return PyErr_Format( + PyExc_ValueError, + "Bad base85 character at position %d", i); /* overflow detection: 0xffffffff == "|NsC0", * "|NsC" == 0x03030303 */ if (acc > 0x03030303 || (acc *= 85) > 0xffffffff - c) - return PyErr_Format(PyExc_ValueError, "Bad base85 sequence at position %d", i); + return PyErr_Format( + PyExc_ValueError, + "Bad base85 sequence at position %d", i); acc += c; }