From 3edacc85ed23bbb43258edc5e03cb5b4b2410cfc Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 12 Aug 2017 10:31:19 +0200 Subject: [PATCH] Remove sizeof applied to sizeof Backported from upstream: https://github.com/hunspell/mythes/commit/2e09086d89ce8e7e73376b92cf67c1798fc47b5f --- 3rdparty/mythes/1.2.5/mythes.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/mythes/1.2.5/mythes.cxx b/3rdparty/mythes/1.2.5/mythes.cxx index 675bbfe3cc..ecf526edf5 100644 --- a/3rdparty/mythes/1.2.5/mythes.cxx +++ b/3rdparty/mythes/1.2.5/mythes.cxx @@ -48,7 +48,7 @@ int MyThes::thInitialize(const char* idxpath, const char* datpath) readLine(pifile,wrd,MAX_WD_LEN); int idxsz = atoi(wrd); - if (idxsz <= 0 || idxsz > std::numeric_limits::max() / sizeof(sizeof(char*))) { + if (idxsz <= 0 || idxsz > std::numeric_limits::max() / sizeof(char*)) { fprintf(stderr,"Error - bad index %d\n", idxsz); fclose(pifile); return 0;