From 26c8c119efd44804c7b27f8637c69eda63f0c189 Mon Sep 17 00:00:00 2001 From: simon Date: Thu, 3 May 2012 17:34:51 +0000 Subject: [PATCH] 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 --- ustring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0