Changeset 1617


Ignore:
Timestamp:
Nov 23, 2009 8:31:37 AM (11 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpEncode.cc

    r1580 r1617  
    220220Rappture::encoding::isGzipped(const char* buf, int size)
    221221{
     222    unsigned int first, second;
    222223    if (buf == NULL) {
    223224        return false;                   /* Really should let this segfault. */
    224225    }
    225     return (((unsigned int)buf[0] == 0x1f)  && ((unsigned int)buf[1] == 0x8b));
     226    first = buf[0];
     227    second = buf[1];
     228    return ((first == 0x1f)  && (second == 0x8b));
    226229}
    227230
Note: See TracChangeset for help on using the changeset viewer.