Skip to content

Commit

Permalink
Fixed some warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukuchi committed Oct 5, 2017
1 parent f6e8ba6 commit 72c039f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
- test_all.sh activates test_basic.sh + test_configure.sh.
- test_basic.sh is better during active development, especially when you
gave additional options to configure script.
* bitstream.c:
- Fixed some warnings.

2017.10.05 Kentaro Fukuchi <[email protected]>
[4.0]
Expand Down
2 changes: 1 addition & 1 deletion bitstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void BitStream_writeNum(unsigned char *dest, size_t bits, unsigned int nu
unsigned char *p;

p = dest;
mask = 1 << (bits - 1);
mask = 1U << (bits - 1);
for(i = 0; i < bits; i++) {
if(num & mask) {
*p = 1;
Expand Down

0 comments on commit 72c039f

Please sign in to comment.