mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
style
This commit is contained in:
parent
e3dbbd3271
commit
f79c0075c4
2 changed files with 3 additions and 3 deletions
|
@ -1207,7 +1207,7 @@ prhex(char **spp, bmp_t bits, int flags, int bperhx) {
|
|||
* Set P_UPPER in flags to write A-F in uppercase.
|
||||
*/
|
||||
static const char hex[] = "0123456789abcdef0123456789ABCDEF";
|
||||
const int upper = (flags & P_UPPER ? 0x10 : 0);
|
||||
const int upper = ((flags & P_UPPER) ? 0x10 : 0);
|
||||
while (bperhx > 0) {
|
||||
bperhx -= ((bperhx + 3) & 3) + 1;
|
||||
*(*spp)++ = hex[(bits >> bperhx & BMP_C(0xf)) | upper];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue