diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-12-07 20:13:18 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-12-07 20:13:18 +0000 |
commit | 6bc8916a58f8a393f44ae25df3da2a00f055f332 (patch) | |
tree | f31cd5aaf84024770773154519e3a1bb5e3c9e09 /rbutil/rbutilqt/quazip/crypt.h | |
parent | 16f48e8ebc35d911d98f5da65469eab69009294e (diff) | |
download | rockbox-6bc8916a58f8a393f44ae25df3da2a00f055f332.tar.gz rockbox-6bc8916a58f8a393f44ae25df3da2a00f055f332.zip |
QuaZip: change the order of void-casts.
MSVC requires void-casting of unused variables to be done after variable
definitions. Change the order, no functional changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31171 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/quazip/crypt.h')
-rw-r--r-- | rbutil/rbutilqt/quazip/crypt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/quazip/crypt.h b/rbutil/rbutilqt/quazip/crypt.h index 82748c5715..359cf6726e 100644 --- a/rbutil/rbutilqt/quazip/crypt.h +++ b/rbutil/rbutilqt/quazip/crypt.h @@ -34,10 +34,10 @@ */ static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab) { - (void) pcrc_32_tab; /* avoid "unused parameter" warning */ unsigned temp; /* POTENTIAL BUG: temp*(temp^1) may overflow in an * unpredictable manner on 16-bit systems; not a problem * with any known compiler so far, though */ + (void) pcrc_32_tab; /* avoid "unused parameter" warning */ temp = ((unsigned)(*(pkeys+2)) & 0xffff) | 2; return (int)(((temp * (temp ^ 1)) >> 8) & 0xff); |