Skip to content

Commit

Permalink
Fix member variable name (blockIndependence)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-mat committed Aug 21, 2013
1 parent 60132c8 commit c0e1210
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/lz4mt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ char flgToChar(const Lz4MtFlg& flg) {
| ((flg.streamChecksum & 1) << 2)
| ((flg.streamSize & 1) << 3)
| ((flg.blockChecksum & 1) << 4)
| ((flg.blockIndependance & 1) << 5)
| ((flg.blockIndependence & 1) << 5)
| ((flg.versionNumber & 3) << 6)
);
}
Expand All @@ -55,7 +55,7 @@ Lz4MtFlg charToFlg(char c) {
flg.streamChecksum = (c >> 2) & 1;
flg.streamSize = (c >> 3) & 1;
flg.blockChecksum = (c >> 4) & 1;
flg.blockIndependance = (c >> 5) & 1;
flg.blockIndependence = (c >> 5) & 1;
flg.versionNumber = (c >> 6) & 3;
return flg;
}
Expand Down Expand Up @@ -118,7 +118,7 @@ validateStreamDescriptor(const Lz4MtStreamDescriptor* sd) {
if(0 != sd->flg.reserved1) {
return LZ4MT_RESULT_INVALID_HEADER;
}
if(0 == sd->flg.blockIndependance) {
if(0 == sd->flg.blockIndependence) {
/// @TODO: Implement Block Dependency. lz4: r96 - https://code.google.com/p/lz4/source/detail?r=96
return LZ4MT_RESULT_BLOCK_DEPENDENCE_IS_NOT_SUPPORTED_YET;
}
Expand Down Expand Up @@ -272,7 +272,7 @@ lz4mtInitStreamDescriptor()
e.flg.reserved1 = 0;
e.flg.streamSize = 0;
e.flg.blockChecksum = 0;
e.flg.blockIndependance = 1;
e.flg.blockIndependence = 1;
e.flg.versionNumber = 1;

e.bd.reserved3 = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/lz4mt.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct Lz4MtFlg {
char streamChecksum; // bit[2]
char streamSize; // bit[3]
char blockChecksum; // bit[4]
char blockIndependance; // bit[5]
char blockIndependence; // bit[5]
char versionNumber; // bit[6,7]
};
typedef struct Lz4MtFlg Lz4MtFlg;
Expand Down

0 comments on commit c0e1210

Please sign in to comment.