aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-03-13 10:26:02 +0100
committerHans Bolinder <[email protected]>2018-03-13 10:26:02 +0100
commit54e20b0df9e643f48bcc4bcb8d58bdc97335b42b (patch)
treee4bbb6795745163e7a0ca0277793dc1e4258710d /lib/compiler/src
parent3fa85a8e858e1c8300967e0eda347697c0940188 (diff)
parentb4d1aa182b211083c2982a700aa3e35eddecb6fc (diff)
downloadotp-54e20b0df9e643f48bcc4bcb8d58bdc97335b42b.tar.gz
otp-54e20b0df9e643f48bcc4bcb8d58bdc97335b42b.tar.bz2
otp-54e20b0df9e643f48bcc4bcb8d58bdc97335b42b.zip
Merge branch 'hasse/dialyzer/extra-range/OTP-14970'
* hasse/dialyzer/extra-range/OTP-14970: ssl: Correct some specs os_mon: Correct a spec Fix broken spec in beam_asm Dialyzer should not throw away spec information because of overspec
Diffstat (limited to 'lib/compiler/src')
-rw-r--r--lib/compiler/src/beam_asm.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/src/beam_asm.erl b/lib/compiler/src/beam_asm.erl
index fa919ca862..5ef340c831 100644
--- a/lib/compiler/src/beam_asm.erl
+++ b/lib/compiler/src/beam_asm.erl
@@ -475,7 +475,7 @@ encode_alloc_list_1([{floats,Floats}|T], Dict, Acc0) ->
encode_alloc_list_1([], Dict, Acc) ->
{iolist_to_binary(Acc),Dict}.
--spec encode(non_neg_integer(), pos_integer()) -> iodata().
+-spec encode(non_neg_integer(), integer()) -> iodata().
encode(Tag, N) when N < 0 ->
encode1(Tag, negative_to_bytes(N));