summaryrefslogtreecommitdiff
path: root/textproc/hunspell/files/patch-src_parsers_latexparser.cxx
blob: 89c6b60bed1b6c79f9968bb28d97d321ed4e3c34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/parsers/latexparser.cxx.orig	2008-04-23 17:56:27.000000000 +0200
+++ src/parsers/latexparser.cxx	2008-04-23 17:57:00.000000000 +0200
@@ -82,7 +82,7 @@
 	{ { "\\url", NULL } , 1 }
 };
 
-#define PATTERN_LEN (sizeof(PATTERN) / ((sizeof(char *) * 2) + sizeof(int)))
+#define PATTERN_LEN (sizeof(PATTERN) / sizeof(PATTERN[0]))
 
 LaTeXParser::LaTeXParser(const char * wordchars)
 {