From e5a2538b6dcb6404d4404ebb4403e0c58e8ce9b1 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 11 Nov 2015 22:22:19 +0000 Subject: Make it clearer why we're asserting. --- render/layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index 99c4e995c..7905eabb7 100644 --- a/render/layout.c +++ b/render/layout.c @@ -5126,7 +5126,8 @@ void layout_calculate_descendant_bboxes(struct box *box) { struct box *child; - assert((box->width != UNKNOWN_WIDTH) && (box->height != AUTO)); + assert(box->width != UNKNOWN_WIDTH); + assert(box->height != AUTO); /* assert((box->width >= 0) && (box->height >= 0)); */ /* Initialise box's descendant box to border edge box */ -- cgit v1.2.3