Skip to content

Commit

Permalink
Merge pull request #12 from madmo/master
Browse files Browse the repository at this point in the history
fix byteorder bugs in s16 s32 s64 reads
  • Loading branch information
camgunz committed Dec 3, 2014
2 parents 6b7c72f + 0b0efdb commit 0b9433a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@ bool cmp_read_s16(cmp_ctx_t *ctx, int16_t *s) {
return false;
}

*s = be16(obj.as.s16);
*s = obj.as.s16;
return true;
}

Expand All @@ -1128,7 +1128,7 @@ bool cmp_read_s32(cmp_ctx_t *ctx, int32_t *i) {
return false;
}

*i = be32(obj.as.s32);
*i = obj.as.s32;
return true;
}

Expand All @@ -1143,7 +1143,7 @@ bool cmp_read_s64(cmp_ctx_t *ctx, int64_t *l) {
return false;
}

*l = be64(obj.as.s64);
*l = obj.as.s64;
return true;
}

Expand Down

0 comments on commit 0b9433a

Please sign in to comment.