aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl_layout.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-10 15:31:00 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-10 15:31:00 +0000
commit8532b513ad046c8c7407add6f29b742c717bb60e (patch)
tree2588a006e07be8d5cf42947d412dfab7d92ac586 /tbl_layout.c
parentbf4bddcd274b710f5c5b77eb76f1d129507f43de (diff)
downloadmandoc-8532b513ad046c8c7407add6f29b742c717bb60e.tar.gz
mandoc-8532b513ad046c8c7407add6f29b742c717bb60e.tar.zst
mandoc-8532b513ad046c8c7407add6f29b742c717bb60e.zip
Clarify what members may be NULL or not in calculating widths. Make
sure signedness is correct. Verify that layouts MUST exit for data cells.
Diffstat (limited to 'tbl_layout.c')
-rw-r--r--tbl_layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbl_layout.c b/tbl_layout.c
index 12d53fad..b3e81467 100644
--- a/tbl_layout.c
+++ b/tbl_layout.c
@@ -1,4 +1,4 @@
-/* $Id: tbl_layout.c,v 1.14 2011/01/10 14:40:30 kristaps Exp $ */
+/* $Id: tbl_layout.c,v 1.15 2011/01/10 15:31:00 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -122,7 +122,7 @@ mod:
}
*pos += i;
- cp->spacing = atoi(buf);
+ cp->spacing = (size_t)atoi(buf);
goto mod;
/* NOTREACHED */