Changeset 1617


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

Legend:

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

    r1580 r1617  
    222222Rappture::encoding::isGzipped(const char* buf, int size)
    223223{
     224    unsigned int first, second;
    224225    if (buf == NULL) {
    225226        return false;                   /* Really should let this segfault. */
    226227    }
    227     return (((unsigned int)buf[0] == 0x1f)  && ((unsigned int)buf[1] == 0x8b));
     228    first = buf[0];
     229    second = buf[1];
     230    return ((first == 0x1f)  && (second == 0x8b));
    228231}
    229232
Note: See TracChangeset for help on using the changeset viewer.