fix bit shift errors when compliing on arm
This commit is contained in:
parent
14e1f77c8e
commit
e7988dc64b
1 changed files with 3 additions and 3 deletions
|
@ -124,9 +124,9 @@ func appendContentText(content string) (int, Burst) {
|
||||||
out := make(Burst, 0)
|
out := make(Burst, 0)
|
||||||
debugf("appendContentText: %s", content)
|
debugf("appendContentText: %s", content)
|
||||||
|
|
||||||
bitpos := 0
|
bitpos := uint32(0)
|
||||||
word := uint32(0)
|
word := uint32(0)
|
||||||
leftbits := 0
|
leftbits := uint32(0)
|
||||||
pos := 0
|
pos := 0
|
||||||
|
|
||||||
// walk through characters in message
|
// walk through characters in message
|
||||||
|
@ -146,7 +146,7 @@ func appendContentText(content string) (int, Burst) {
|
||||||
debugf(" bits of char won't fit since bitpos is %d, got %d bits free, leaving %d bits in next word", bitpos, space, leftbits)
|
debugf(" bits of char won't fit since bitpos is %d, got %d bits free, leaving %d bits in next word", bitpos, space, leftbits)
|
||||||
}
|
}
|
||||||
|
|
||||||
word |= (uint32(char) << int(31-7-bitpos))
|
word |= (uint32(char)<<31 - 7 - bitpos)
|
||||||
|
|
||||||
bitpos += 7
|
bitpos += 7
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue