summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gsm/gprs_cipher_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/gprs_cipher_core.c b/src/gsm/gprs_cipher_core.c
index 8f020b38..da6e0a83 100644
--- a/src/gsm/gprs_cipher_core.c
+++ b/src/gsm/gprs_cipher_core.c
@@ -115,7 +115,7 @@ int gprs_cipher_supported(enum gprs_ciph_algo algo)
/* GSM TS 04.64 / Section A.2.1 : Generation of 'input' */
uint32_t gprs_cipher_gen_input_ui(uint32_t iov_ui, uint8_t sapi, uint32_t lfn, uint32_t oc)
{
- uint32_t sx = ((1<<27) * sapi) + (1<<31);
+ uint32_t sx = ((1<<27) * sapi) + ((uint32_t ) 1<<31);
return (iov_ui ^ sx) + lfn + oc;
}