aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/src
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2018-02-21 10:06:23 +0100
committerRichard Carlsson <[email protected]>2018-02-21 10:06:23 +0100
commit933e7fe6d59d65c16057eeba9bf448fefc364069 (patch)
tree6697aa47a81e8cba8fa9a6f5dd47568c41ebab86 /lib/compiler/src
parent9883f9714bd4a56ae9d68b3b0e7958461918946e (diff)
downloadotp-933e7fe6d59d65c16057eeba9bf448fefc364069.tar.gz
otp-933e7fe6d59d65c16057eeba9bf448fefc364069.tar.bz2
otp-933e7fe6d59d65c16057eeba9bf448fefc364069.zip
Fix broken spec in beam_asm
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));