~ubuntu-branches/ubuntu/vivid/unrar-nonfree/vivid

« back to all changes in this revision

Viewing changes to crc.cpp

  • Committer: Package Import Robot
  • Author(s): Martin Meredith
  • Date: 2015-02-03 12:58:01 UTC
  • mfrom: (1.1.18) (5.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20150203125801-od6ev8cqy1er51vz
Tags: 1:5.2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
  byte *Data=(byte *)Addr;
57
57
 
58
58
  // Align Data to 8 for better performance.
59
 
  for (;Size>0 && ((long)Data & 7);Size--,Data++)
 
59
  for (;Size>0 && ((size_t)Data & 7);Size--,Data++)
60
60
    StartCRC=crc_tables[0][(byte)(StartCRC^Data[0])]^(StartCRC>>8);
61
61
 
62
62
  for (;Size>=8;Size-=8,Data+=8)