aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/bif.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-10-18 16:01:03 +0200
committerLukas Larsson <[email protected]>2017-10-30 19:40:34 +0100
commit1b00539d6db8e349c6782bcd38ab006420734106 (patch)
tree847bc2b962ad07f7ebcc8fac6d9d062fa5b7c1db /erts/emulator/beam/bif.c
parent56587b4c81c337d198a414334c3f6429f12cbf64 (diff)
downloadotp-1b00539d6db8e349c6782bcd38ab006420734106.tar.gz
otp-1b00539d6db8e349c6782bcd38ab006420734106.tar.bz2
otp-1b00539d6db8e349c6782bcd38ab006420734106.zip
erts: Fix a bunch of compiler warnings
Diffstat (limited to 'erts/emulator/beam/bif.c')
-rw-r--r--erts/emulator/beam/bif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c
index ad555bb195..4b11884f38 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -4200,7 +4200,7 @@ BIF_RETTYPE list_to_port_1(BIF_ALIST_1)
cp += 6; /* strlen("#Port<") */
- if (sscanf(cp, "%u.%u>", &n, &p) < 2)
+ if (sscanf(cp, "%u.%u>", (unsigned int*)&n, (unsigned int*)&p) < 2)
goto bad;
if (p > ERTS_MAX_PORT_NUMBER)