Просмотр исходного кода

Fix a new warning found by Dialyzer R16A

Loïc Hoguin 12 лет назад
Родитель
Сommit
3c5502bbf7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/cowboy_multipart.erl

+ 1 - 1
src/cowboy_multipart.erl

@@ -105,7 +105,7 @@ suffix_match(Bin, {_Boundary, {Pat, Len}}) ->
 	Size = byte_size(Bin),
 	suffix_match(Bin, Pat, Size, max(-Size, -Len)).
 
--spec suffix_match(binary(), tuple(), non_neg_integer(), 0|neg_integer()) ->
+-spec suffix_match(binary(), binary:cp(), non_neg_integer(), 0|neg_integer()) ->
 		nomatch | {integer(), integer()}.
 suffix_match(_Bin, _Pat, _Size, _Match=0) ->
 	nomatch;