diff --git a/checkin_notes b/checkin_notes index 5d6423a8b6..42e4a95391 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8335,3 +8335,9 @@ David 2 Oct 2009 util_ops.inc ops/ (most).php + +David 2 Oct 2009 + - wrapper: fix fraction done feature + + samples/wrapper/ + wrapper.cpp diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index cbe5e4cfa5..acb90f8c3e 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -112,7 +112,7 @@ struct TASK { FILE* f = fopen(fraction_done_filename.c_str(), "r"); if (!f) return 0; double frac; - int n = fscanf(f, "%f", &frac); + int n = fscanf(f, "%lf", &frac); fclose(f); if (n != 1) return 0; if (frac < 0) return 0;