use const size_t instead of size_t

This commit is contained in:
Jeff Becker
2016-02-05 12:32:50 -05:00
parent bf38bd5a1d
commit babcbcbcea

View File

@@ -233,7 +233,7 @@ namespace data
size_t IdentityEx::ToBuffer (uint8_t * buf, size_t len) const
{
size_t fullLen = GetFullLen();
const size_t fullLen = GetFullLen();
if (fullLen > len) {
// buffer is too small and may overflow somewhere else
return 0;