VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-08 22:26:39 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-02-09 10:01:06 (GMT)
commit651bea29b4a433972d06cd12be5ef91ec544a41a (patch)
tree84e08a572fd3c90d0e31a0882bb4b5eee3be3c0a /src/Common
parent4e03adc2e7ddaa9c61ded36ec87668c901d43867 (diff)
downloadVeraCrypt-651bea29b4a433972d06cd12be5ef91ec544a41a.zip
VeraCrypt-651bea29b4a433972d06cd12be5ef91ec544a41a.tar.gz
Static Code Analysis: clarify macros definition and use.
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Endian.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Endian.h b/src/Common/Endian.h
index 38af8cf..bffcb86 100644
--- a/src/Common/Endian.h
+++ b/src/Common/Endian.h
@@ -108,7 +108,7 @@ extern "C"
( ( unsigned __int32 ) memPtr[ -2 ] << 8 ) | ( unsigned __int32 ) memPtr[ -1 ] )
#define mgetWord(memPtr) \
- ( memPtr += 2, ( unsigned short ) memPtr[ -2 ] << 8 ) | ( ( unsigned short ) memPtr[ -1 ] )
+ ( memPtr += 2, ((( unsigned short ) memPtr[ -2 ] << 8 ) | ( ( unsigned short ) memPtr[ -1 ] )) )
#define mgetByte(memPtr) \
( ( unsigned char ) *memPtr++ )