Skip to content

Commit

Permalink
[SQUASH ME] fix divisable by 8 check
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed May 9, 2015
1 parent bab1e77 commit 90d3aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/network_layer/ng_ipv6/ext/ng_ipv6_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ng_pktsnip_t *ng_ipv6_ext_build(ng_pktsnip_t *ipv6, ng_pktsnip_t *next,

ext->nh = nh;

if (size & 0xfff) { /* divisible by eight */
if (size & 0x7) { /* not divisible by eight */
ext->len = (size / NG_IPV6_EXT_LEN_UNIT);
}
else {
Expand Down

0 comments on commit 90d3aaf

Please sign in to comment.