Changeset 183740 in webkit


Ignore:
Timestamp:
May 4, 2015 1:42:28 AM (9 years ago)
Author:
Csaba Osztrogonác
Message:

[ARM] Don't compare unsigned chars to EOF (-1)
https://bugs.webkit.org/show_bug.cgi?id=144439

Reviewed by Geoffrey Garen.

Source/WebCore:

  • platform/linux/MemoryPressureHandlerLinux.cpp:

(WebKit::nextToken): Don't cast return value of fgetc() to char.

Source/WebKit2:

  • Shared/linux/WebMemorySamplerLinux.cpp:

(WebKit::nextToken): Don't cast return value of fgetc() to char.

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r183739 r183740  
     12015-05-04  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        [ARM] Don't compare unsigned chars to EOF (-1)
     4        https://bugs.webkit.org/show_bug.cgi?id=144439
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * platform/linux/MemoryPressureHandlerLinux.cpp:
     9        (WebKit::nextToken): Don't cast return value of fgetc() to char.
     10
    1112015-05-04  Manuel Rego Casasnovas  <rego@igalia.com>
    212
  • trunk/Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp

    r180225 r183740  
    6666    unsigned index = 0;
    6767    while (index < bufferSize) {
    68         char ch = fgetc(file);
     68        int ch = fgetc(file);
    6969        if (ch == EOF || (isASCIISpace(ch) && index)) // Break on non-initial ASCII space.
    7070            break;
  • trunk/Source/WebKit2/ChangeLog

    r183737 r183740  
     12015-05-04  Csaba Osztrogonác  <ossy@webkit.org>
     2
     3        [ARM] Don't compare unsigned chars to EOF (-1)
     4        https://bugs.webkit.org/show_bug.cgi?id=144439
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        * Shared/linux/WebMemorySamplerLinux.cpp:
     9        (WebKit::nextToken): Don't cast return value of fgetc() to char.
     10
    1112015-05-04  Antti Koivisto  <antti@apple.com>
    212
  • trunk/Source/WebKit2/Shared/linux/WebMemorySamplerLinux.cpp

    r171868 r183740  
    6767    unsigned int index = 0;
    6868    while (index < maxBuffer) {
    69         char ch = fgetc(file);
     69        int ch = fgetc(file);
    7070        if (ch == EOF || (isASCIISpace(ch) && index)) // Break on non-initial ASCII space.
    7171            break;
Note: See TracChangeset for help on using the changeset viewer.