]> git.lyx.org Git - lyx.git/commitdiff
Remove sizeof applied to sizeof
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 12 Aug 2017 08:31:19 +0000 (10:31 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 12 Aug 2017 08:31:19 +0000 (10:31 +0200)
Backported from upstream:
https://github.com/hunspell/mythes/commit/2e09086d89ce8e7e73376b92cf67c1798fc47b5f

3rdparty/mythes/1.2.5/mythes.cxx

index 675bbfe3cc743d937f961aebc0696426864ebf02..ecf526edf5c09078d4fe5639425c549a5cce2fb8 100644 (file)
@@ -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;