Remove sizeof applied to sizeof

Backported from upstream:
2e09086d89
This commit is contained in:
Juergen Spitzmueller 2017-08-12 10:31:19 +02:00
parent 7a7c2117bf
commit 3edacc85ed

View File

@ -48,7 +48,7 @@ int MyThes::thInitialize(const char* idxpath, const char* datpath)
readLine(pifile,wrd,MAX_WD_LEN); readLine(pifile,wrd,MAX_WD_LEN);
int idxsz = atoi(wrd); 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); fprintf(stderr,"Error - bad index %d\n", idxsz);
fclose(pifile); fclose(pifile);
return 0; return 0;