From 3c5502bbf71ebee08ead3e8d579bfce9d2f48293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 30 Jan 2013 18:23:21 +0100 Subject: Fix a new warning found by Dialyzer R16A --- src/cowboy_multipart.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cowboy_multipart.erl b/src/cowboy_multipart.erl index 7363054..4e8fff0 100644 --- a/src/cowboy_multipart.erl +++ b/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; -- cgit v1.2.3