0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Fix a new warning found by Dialyzer R16A

This commit is contained in:
Loïc Hoguin 2013-01-30 18:23:21 +01:00
parent cc52343e9b
commit 3c5502bbf7

View file

@ -105,7 +105,7 @@ suffix_match(Bin, {_Boundary, {Pat, Len}}) ->
Size = byte_size(Bin), Size = byte_size(Bin),
suffix_match(Bin, Pat, Size, max(-Size, -Len)). 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()}. nomatch | {integer(), integer()}.
suffix_match(_Bin, _Pat, _Size, _Match=0) -> suffix_match(_Bin, _Pat, _Size, _Match=0) ->
nomatch; nomatch;