Revision: 2566 Author: [email protected] Date: Tue Jul 28 14:10:13 2009 Log: - getc returns an int.
Review URL: http://codereview.chromium.org/159538 http://code.google.com/p/v8/source/detail?r=2566 Modified: /branches/bleeding_edge/src/platform-linux.cc ======================================= --- /branches/bleeding_edge/src/platform-linux.cc Tue Jul 28 08:37:05 2009 +++ /branches/bleeding_edge/src/platform-linux.cc Tue Jul 28 14:10:13 2009 @@ -233,9 +233,9 @@ char attr_r, attr_w, attr_x, attr_p; if (fscanf(fp, "%" V8PRIxPTR "-%" V8PRIxPTR, &start, &end) != 2) break; if (fscanf(fp, " %c%c%c%c", &attr_r, &attr_w, &attr_x, &attr_p) != 4) break; - char c; + int c; if (attr_r == 'r' && attr_x == 'x') { - while (c = getc(fp), c != EOF && c != '\n' && c != '/'); + while (c = getc(fp), (c != EOF) && (c != '\n') && (c != '/')); char lib_name[1024]; bool lib_has_name = false; if (c == '/') { @@ -250,7 +250,7 @@ } LOG(SharedLibraryEvent(lib_name, start, end)); } - while (c = getc(fp), c != EOF && c != '\n'); + while (c = getc(fp), (c != EOF) && (c != '\n')); } fclose(fp); #endif --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
