summaryrefslogtreecommitdiffstats
path: root/src/sccp2sua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sccp2sua.c')
-rw-r--r--src/sccp2sua.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sccp2sua.c b/src/sccp2sua.c
index 7268e27..753d9a4 100644
--- a/src/sccp2sua.c
+++ b/src/sccp2sua.c
@@ -134,7 +134,8 @@ int osmo_sccp_addr_parse(struct osmo_sccp_addr *out,
if (sca->point_code_indicator) {
out->presence |= OSMO_SCCP_ADDR_T_PC;
- out->pc = ((cur[1] << 8) & 0x3f) | cur[0];
+ out->pc = (uint16_t) (cur[1] & 0x3f) << 8;
+ out->pc |= cur[0];
cur += 2;
}