Skip to content

Commit 30ded6f

Browse files
committed
Update nfc-utils
1 parent a5a4c91 commit 30ded6f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/nfc-utils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Copyright (C) 2010-2012 Romain Tartière
88
* Copyright (C) 2010-2013 Philippe Teuwen
99
* Copyright (C) 2012-2013 Ludovic Rousseau
10+
* See AUTHORS file for a more comprehensive list of contributors.
1011
* Additional contributors of this file:
1112
*
1213
* Redistribution and use in source and binary forms, with or without
@@ -45,7 +46,7 @@ uint8_t
4546
oddparity(const uint8_t bt)
4647
{
4748
// cf http://graphics.stanford.edu/~seander/bithacks.html#ParityParallel
48-
return (0x9669 >> ((bt ^(bt >> 4)) & 0xF)) & 1;
49+
return (0x9669 >> ((bt ^ (bt >> 4)) & 0xF)) & 1;
4950
}
5051

5152
void

src/nfc-utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Copyright (C) 2010-2012 Romain Tartière
88
* Copyright (C) 2010-2013 Philippe Teuwen
99
* Copyright (C) 2012-2013 Ludovic Rousseau
10+
* See AUTHORS file for a more comprehensive list of contributors.
1011
* Additional contributors of this file:
1112
*
1213
* Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)