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:
parent
cc52343e9b
commit
3c5502bbf7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue