From: simon Date: Thu, 3 May 2012 17:34:51 +0000 (+0000) Subject: Bug in utoi(), which made it ignore a leading minus sign when X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/commitdiff_plain/26c8c119efd44804c7b27f8637c69eda63f0c189 Bug in utoi(), which made it ignore a leading minus sign when converting a number! Oops. Now you can do things like \cfg{text-list-indent}{-2} \cfg{text-listitem-indent}{2} to get your bullets placed in the left margin rather than indenting the paragraphs of your list. git-svn-id: svn://svn.tartarus.org/sgt/halibut@9474 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ustring.c b/ustring.c index 3d18a4f..3c5698c 100644 --- a/ustring.c +++ b/ustring.c @@ -340,7 +340,7 @@ int utoi(wchar_t const *s) { s++; } - return n; + return n * sign; } double utof(wchar_t const *s)