summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hwpeq.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwpfilter/source/hwpeq.cpp')
-rw-r--r--hwpfilter/source/hwpeq.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/hwpfilter/source/hwpeq.cpp b/hwpfilter/source/hwpeq.cpp
index fbb0c86a4f56..6b663879cb92 100644
--- a/hwpfilter/source/hwpeq.cpp
+++ b/hwpfilter/source/hwpeq.cpp
@@ -38,6 +38,7 @@ using namespace std;
#include "mzstring.h"
#include "hwpeq.h"
#include <sal/types.h>
+#include <sal/macros.h>
//#define TEST
//#define DEBUG
@@ -392,7 +393,7 @@ static hwpeq eq_tbl[] = {
static hwpeq *lookup_eqn(char *str)
{
- static int eqCount = sizeof(eq_tbl) / sizeof(eq_tbl[0]);
+ static int eqCount = SAL_N_ELEMENTS(eq_tbl);
int m, k, l = 0, r = eqCount;
hwpeq *result = 0;