summaryrefslogtreecommitdiffstats
path: root/cpukit/libcrypt
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-10 09:10:39 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-10 09:10:39 -0500
commitb05549fc724662d3b174ce2b3904f1734fe945b9 (patch)
tree8c377b486fbbb5294b0db332864d1f26469bc25f /cpukit/libcrypt
parentposix: Install <semaphore.h> only if not provided (diff)
downloadrtems-b05549fc724662d3b174ce2b3904f1734fe945b9.tar.bz2
cpukit/libcrypt/misc.c: Reverse order of statements in ifdef
Diffstat (limited to 'cpukit/libcrypt')
-rw-r--r--cpukit/libcrypt/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcrypt/misc.c b/cpukit/libcrypt/misc.c
index 9ca26d46e0..5daffba391 100644
--- a/cpukit/libcrypt/misc.c
+++ b/cpukit/libcrypt/misc.c
@@ -53,9 +53,9 @@ b64_from_24bit(uint8_t B2, uint8_t B1, uint8_t B0, int n, int *buflen, char **cp
int i;
#if defined(__rtems__)
- w = (B2 << 16) | (B1 << 8) | B0;
-#else
w = ((uint32_t)B2 << 16) | ((uint32_t)B1 << 8) | B0;
+#else
+ w = (B2 << 16) | (B1 << 8) | B0;
#endif
for (i = 0; i < n; i++) {
**cp = itoa64[w&0x3f];