From e25a2964bcf57c5ad951e48e99da4bfa327f66f3 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 21 Apr 2017 16:09:36 -0500 Subject: [PATCH] Fix postfix.h macro arg, document --- src/libCom/calc/postfix.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libCom/calc/postfix.h b/src/libCom/calc/postfix.h index a7a2a3cbe..b90492012 100644 --- a/src/libCom/calc/postfix.h +++ b/src/libCom/calc/postfix.h @@ -19,9 +19,10 @@ #define CALCPERFORM_NARGS 12 #define CALCPERFORM_STACK 80 -#define INFIX_TO_POSTFIX_SIZE(n) (n*21/6) +#define INFIX_TO_POSTFIX_SIZE(n) ((n)*21/6) /* The above expression is an estimate of the maximum postfix buffer - * size needed for a given infix expression buffer. The actual size + * size needed for a given infix expression buffer (the argument must count + * the trailing nil byte in the input expression string). The actual size * needed is never larger than this value, although it is actually a * few bytes smaller for some sizes. *