summaryrefslogtreecommitdiff
path: root/libpiano
diff options
context:
space:
mode:
Diffstat (limited to 'libpiano')
-rw-r--r--libpiano/src/crypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpiano/src/crypt.c b/libpiano/src/crypt.c
index 1b59533..0cc359e 100644
--- a/libpiano/src/crypt.c
+++ b/libpiano/src/crypt.c
@@ -157,7 +157,7 @@ void PianoBytesToInts (const char *strInput, unsigned int **retArrInts,
while (i < strInputN) {
shift = 24;
while (shift >= 0 && i < strInputN) {
- arrInts[i/4] |= strInput[i] << shift;
+ arrInts[i/4] |= (strInput[i] & 0xff) << shift;
shift -= 8;
i++;
}