Skip to content

Commit b505973

Browse files
committed
use mask padded with zeroes
1 parent 688341b commit b505973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/bitwise-operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ information, with mask to extract the parts. Here, a `unsigned short` type
6666
stores the byte value and associated flags:
6767

6868
```C
69-
#define VALUE_MASK 0xff
69+
#define VALUE_MASK 0x00ff // same as 0xff yet more readable
7070
#define FLAG_MASK 0xff00
7171

7272
#define ONE 0x0100

0 commit comments

Comments
 (0)