Skip to content

Commit

Permalink
Merge pull request #4720 from ghost91-/base64-decode-contract-fix
Browse files Browse the repository at this point in the history
[trivial] Fixed in contract for Base64.decode for arrays
  • Loading branch information
andralex authored Aug 10, 2016
2 parents 488b399 + 1bbe7fe commit faf0fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/base64.d
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')
is(R2 == ubyte[]) && isOutputRange!(R2, ubyte))
in
{
assert(buffer.length >= decodeLength(source.length), "Insufficient buffer for decoding");
assert(buffer.length >= realDecodeLength(source), "Insufficient buffer for decoding");
}
out(result)
{
Expand Down

0 comments on commit faf0fc1

Please sign in to comment.