commit 3edacc85ed23bbb43258edc5e03cb5b4b2410cfc
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sat Aug 12 10:31:19 2017 +0200

    Remove sizeof applied to sizeof
    
    Backported from upstream:
    
https://github.com/hunspell/mythes/commit/2e09086d89ce8e7e73376b92cf67c1798fc47b5f
---
 3rdparty/mythes/1.2.5/mythes.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/3rdparty/mythes/1.2.5/mythes.cxx b/3rdparty/mythes/1.2.5/mythes.cxx
index 675bbfe..ecf526e 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<int>::max() / 
sizeof(sizeof(char*))) {
+    if (idxsz <= 0 || idxsz > std::numeric_limits<int>::max() / sizeof(char*)) 
{
        fprintf(stderr,"Error - bad index %d\n", idxsz);
        fclose(pifile);
        return 0;

Reply via email to