~ubuntu-branches/ubuntu/trusty/unrar-nonfree/trusty-proposed

« back to all changes in this revision

Viewing changes to crc.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chris Anderson
  • Date: 2004-12-01 02:22:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041201022256-c3pj5nufp88tdyw6
Tags: 3.4.3-1
* New upstream release 
* Applied Ulf Harnhammar's patch to solve overflows when $HOME was too
  large (closes: #280263).

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
}
15
15
 
16
16
 
17
 
uint CRC(uint StartCRC,void *Addr,uint Size)
 
17
uint CRC(uint StartCRC,const void *Addr,uint Size)
18
18
{
19
19
  if (CRCTab[1]==0)
20
20
    InitCRC();
48
48
}
49
49
 
50
50
#ifndef SFX_MODULE
51
 
ushort OldCRC(ushort StartCRC,void *Addr,uint Size)
 
51
ushort OldCRC(ushort StartCRC,const void *Addr,uint Size)
52
52
{
53
53
  byte *Data=(byte *)Addr;
54
54
  for (int I=0;I<Size;I++)