Skip to content

Commit

Permalink
wav2sketch.c: fix minor gcc10 warning "misleading indentation"
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankBoesing authored Jun 30, 2021
1 parent 096d395 commit f18a950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/wav2sketch/wav2sketch.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ uint8_t ulaw_encode(int16_t audio)
if (mag >= 0x0400) return neg | 0x30 | ((mag >> 6) & 0x0F); // 0000 01wx yz00 0000
if (mag >= 0x0200) return neg | 0x20 | ((mag >> 5) & 0x0F); // 0000 001w xyz0 0000
if (mag >= 0x0100) return neg | 0x10 | ((mag >> 4) & 0x0F); // 0000 0001 wxyz 0000
return neg | 0x00 | ((mag >> 3) & 0x0F); // 0000 0000 1wxy z000
else return neg | 0x00 | ((mag >> 3) & 0x0F); // 0000 0000 1wxy z000
}


Expand Down

0 comments on commit f18a950

Please sign in to comment.