SetProjectionPrivate: quiet uint64->size_t conv warning

Change-Id: Iae467f650770e98ef59fede6d714e222b502f5bb
This commit is contained in:
James Zern 2016-10-18 15:30:48 -07:00
parent 5e1d131e6c
commit da04ebae9b

View File

@ -1366,7 +1366,12 @@ bool Projection::SetProjectionPrivate(const uint8_t* data,
return false;
}
uint8_t* new_private_data = new (std::nothrow) uint8_t[data_length];
if (data_length != static_cast<size_t>(data_length)) {
return false;
}
uint8_t* new_private_data =
new (std::nothrow) uint8_t[static_cast<size_t>(data_length)];
if (new_private_data == NULL) {
return false;
}