From 192c2a9e124d613b4bf2c67840088f52b0f02d62 Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Fri, 12 Oct 2007 10:51:49 +0200 Subject: [PATCH] Use parenthesis around macro parameters. Macros concerned are: is_inline_element() is_block_element() --- src/document/html/parser.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/document/html/parser.h b/src/document/html/parser.h index 3e8fd3d4f..ec1ba15d7 100644 --- a/src/document/html/parser.h +++ b/src/document/html/parser.h @@ -137,8 +137,9 @@ struct html_element { ELEMENT_VISITED = 2, } pseudo_class; }; -#define is_inline_element(e) (e->linebreak == 0) -#define is_block_element(e) (e->linebreak > 0) + +#define is_inline_element(e) ((e)->linebreak == 0) +#define is_block_element(e) ((e)->linebreak > 0) /* Interface for the renderer */