mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 18:07:02 +00:00
More code cleanup
Patch 7 of 7 from "Ismael Luceno" <ismael.luceno@gmail.com>
This commit is contained in:
@@ -71,7 +71,7 @@ int _min(int first, int second) {
|
||||
|
||||
/* gets bit in bitString at bitPos */
|
||||
int getBit(UINT *bitStr, int bitPos) {
|
||||
return(((bitStr[bitPos/16] & (0x8000>>(bitPos%16))) == 0) ? 0 : 1);
|
||||
return !!(bitStr[bitPos >> 4] & (0x8000 >> (bitPos & 15)));
|
||||
}
|
||||
|
||||
/* initialize pwr928 encoding table */
|
||||
|
||||
Reference in New Issue
Block a user