summaryrefslogtreecommitdiff
path: root/ustring.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2012-05-03 17:34:51 +0000
committerSimon Tatham <anakin@pobox.com>2012-05-03 17:34:51 +0000
commitf9c0f2f4b344c6138791fc67ef000c2dea1fb7a8 (patch)
tree64fe5f4c79372e0344eb16ee43c7173b2cade8bd /ustring.c
parentd4c6dfa05ee447a31aaeece63f9b9f062d26e5a8 (diff)
downloadhalibut-f9c0f2f4b344c6138791fc67ef000c2dea1fb7a8.zip
halibut-f9c0f2f4b344c6138791fc67ef000c2dea1fb7a8.tar.gz
halibut-f9c0f2f4b344c6138791fc67ef000c2dea1fb7a8.tar.bz2
halibut-f9c0f2f4b344c6138791fc67ef000c2dea1fb7a8.tar.xz
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]
Diffstat (limited to 'ustring.c')
-rw-r--r--ustring.c2
1 files changed, 1 insertions, 1 deletions
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)