Bug in utoi(), which made it ignore a leading minus sign when
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 3 May 2012 17:34:51 +0000 (17:34 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 3 May 2012 17:34:51 +0000 (17:34 +0000)
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

index 3d18a4f..3c5698c 100644 (file)
--- 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)