Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/benchmarks/bonnie++/files/patch-getc_putc_helper.cpp
16461 views
1
--- getc_putc_helper.cpp.orig 2009-07-03 02:26:05 UTC
2
+++ getc_putc_helper.cpp
3
@@ -45,7 +45,7 @@ int main(int argc, char *argv[])
4
return 1;
5
}
6
fflush(NULL);
7
- TEST_FUNC_READ("getc() no thread", if( (c = getc(fp)) == EOF), res[1]);
8
+ TEST_FUNC_READ("getc() no thread", int tmp = getc(fp); c = (char)tmp; if (tmp == EOF), res[1]);
9
if(fseek(fp, 0, SEEK_SET) != 0)
10
{
11
fprintf(stderr, "Can't seek.\n");
12
13