Path: blob/main/benchmarks/bonnie++/files/patch-getc_putc.cpp
16461 views
--- getc_putc.cpp.orig 2018-09-15 07:00:31 UTC1+++ getc_putc.cpp2@@ -206,7 +206,7 @@ int main(int argc, char *argv[])3return 1;4}5fflush(NULL);6- TEST_FUNC_READ("getc()", if( (c = getc(fp)) == EOF), res[Getc]);7+ TEST_FUNC_READ("getc()", int tmp = getc(fp); c = (char)tmp; if (tmp == EOF), res[Getc]);8if(fseek(fp, 0, SEEK_SET) != 0)9{10fprintf(stderr, "Can't seek.\n");11@@ -221,7 +221,7 @@ int main(int argc, char *argv[])12return 1;13}14fflush(NULL);15- TEST_FUNC_READ("getc_unlocked()", if( (c = getc_unlocked(fp)) == EOF), res[GetcUnlocked]);16+ TEST_FUNC_READ("getc_unlocked()", int tmp = getc_unlocked(fp); c = (char)tmp; if (tmp == EOF), res[GetcUnlocked]);1718if(!quiet)19printf("done\n");202122