Ticket #1713: 64bit_dsmcc_fix.diff

File 64bit_dsmcc_fix.diff, 827 bytes (added by stuart@…, 14 years ago)
  • libs/libmythtv/dsmcc.cpp

     
    3030#define DSMCC_DDB_OFFSET        20
    3131#define DSMCC_BIOP_OFFSET       24
    3232
    33 static unsigned long crc32(const unsigned char *data, int len);
     33static uint32_t crc32(const unsigned char *data, int len);
    3434
    3535Dsmcc::Dsmcc()
    3636{
     
    536536    0xbcb4666d, 0xb8757bda, 0xb5365d03, 0xb1f740b4
    537537};
    538538
    539 static unsigned long crc32(const unsigned char *data, int len)
     539static uint32_t crc32(const unsigned char *data, int len)
    540540{
    541541    register int i;
    542     unsigned long crc = 0xffffffff;
     542    uint32_t crc = 0xffffffff;
    543543
    544544    for (i = 0; i < len; i++)
    545545        crc = (crc << 8) ^ crc_table[((crc >> 24) ^ *data++) & 0xff];