diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 15:21:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 15:21:13 +0000 |
commit | 3ee412a268eff0c9e52bb141dc3289eda00a6d53 (patch) | |
tree | c7806e338a7f518f1e0d02ab42c28e4ce822a405 /roff.c | |
parent | 610da288ad1c36332f5bc333692f49e2326fa30d (diff) | |
download | mandoc-3ee412a268eff0c9e52bb141dc3289eda00a6d53.tar.gz mandoc-3ee412a268eff0c9e52bb141dc3289eda00a6d53.tar.zst mandoc-3ee412a268eff0c9e52bb141dc3289eda00a6d53.zip |
Support `size' constructs in eqn.7. Generalise mandoc_strontou to this
effect.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.148 2011/07/21 10:24:35 kristaps Exp $ */ +/* $Id: roff.c,v 1.149 2011/07/21 15:21:13 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -1149,7 +1149,7 @@ roff_nr(ROFF_ARGS) if (0 == strcmp(key, "nS")) { r->regs[(int)REG_nS].set = 1; - if ((iv = mandoc_strntou(val, strlen(val), 10)) >= 0) + if ((iv = mandoc_strntoi(val, strlen(val), 10)) >= 0) r->regs[(int)REG_nS].u = (unsigned)iv; else r->regs[(int)REG_nS].u = 0u; |