From: Juergen Spitzmueller Date: Sat, 12 Aug 2017 08:31:19 +0000 (+0200) Subject: Remove sizeof applied to sizeof X-Git-Tag: 2.3.0beta1~16 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=3edacc85ed23bbb43258edc5e03cb5b4b2410cfc;p=features.git Remove sizeof applied to sizeof Backported from upstream: https://github.com/hunspell/mythes/commit/2e09086d89ce8e7e73376b92cf67c1798fc47b5f --- 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;