From f9c0f2f4b344c6138791fc67ef000c2dea1fb7a8 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 3 May 2012 17:34:51 +0000 Subject: 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. [originally from svn r9474] --- 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) -- cgit v1.1