diff options
author | Loïc Hoguin <[email protected]> | 2013-01-30 18:23:21 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-01-30 18:23:21 +0100 |
commit | 3c5502bbf71ebee08ead3e8d579bfce9d2f48293 (patch) | |
tree | 976f2be1c6a452463a3e567400bbb48c0c54011f /src | |
parent | cc52343e9bdf96cf2c7dec43e6ecd74de0cab2e6 (diff) | |
download | cowboy-3c5502bbf71ebee08ead3e8d579bfce9d2f48293.tar.gz cowboy-3c5502bbf71ebee08ead3e8d579bfce9d2f48293.tar.bz2 cowboy-3c5502bbf71ebee08ead3e8d579bfce9d2f48293.zip |
Fix a new warning found by Dialyzer R16A
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_multipart.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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; |