Skip to content

Commit

Permalink
Re-enable CRC check in courgette.
Browse files Browse the repository at this point in the history
Back before the gyp conversion was complete CRC checking was commented out.
This change re-enables CRC checking.

BUG=none
TEST=none (existing tests still pass)

Review URL: http://codereview.chromium.org/126186

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18573 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
sra@chromium.org committed Jun 17, 2009
1 parent 58dca55 commit fa8e9bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion courgette/courgette.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'type': '<(library)',
'dependencies': [
'../base/base.gyp:base',
#'../third_party/lzma_sdk/7z_C.vcproj',
'../third_party/lzma_sdk/lzma_sdk.gyp:lzma_sdk',
],
'msvs_guid': '9A72A362-E617-4205-B9F2-43C6FB280FA1',
'sources': [
Expand Down
4 changes: 2 additions & 2 deletions courgette/crc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ extern "C" {
namespace courgette {

uint32 CalculateCrc(const uint8* buffer, size_t size) {
// CrcGenerateTable();
CrcGenerateTable();
uint32 crc = 0xffffffffL;
// crc = ~CrcCalc(buffer, size);
crc = ~CrcCalc(buffer, size);
return crc;
}

Expand Down

0 comments on commit fa8e9bb

Please sign in to comment.