mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
Fixed 32-bit warnings.
This commit is contained in:
@@ -153,7 +153,7 @@ bool EncodeColorsLuma(const RgbaColor& endpoint_low,
|
||||
int max_value, ColorEndpointMode* const astc_mode,
|
||||
std::vector<int>* const vals) {
|
||||
assert(vals->size() ==
|
||||
NumValuesForEncodingMode(EndpointEncodingMode::kDirectLuma));
|
||||
size_t(NumValuesForEncodingMode(EndpointEncodingMode::kDirectLuma)));
|
||||
int avg1 = AverageRGB(endpoint_low);
|
||||
int avg2 = AverageRGB(endpoint_high);
|
||||
|
||||
|
||||
@@ -369,10 +369,10 @@ base::Optional<VoidExtentData> UnpackVoidExtent(const PhysicalASTCBlock& pb) {
|
||||
|
||||
const auto void_extent_coords = pb.VoidExtentCoords();
|
||||
if (void_extent_coords) {
|
||||
data.coords[0] = void_extent_coords->at(0);
|
||||
data.coords[1] = void_extent_coords->at(1);
|
||||
data.coords[2] = void_extent_coords->at(2);
|
||||
data.coords[3] = void_extent_coords->at(3);
|
||||
data.coords[0] = uint16_t(void_extent_coords->at(0));
|
||||
data.coords[1] = uint16_t(void_extent_coords->at(1));
|
||||
data.coords[2] = uint16_t(void_extent_coords->at(2));
|
||||
data.coords[3] = uint16_t(void_extent_coords->at(3));
|
||||
} else {
|
||||
uint16_t all_ones = (1 << 13) - 1;
|
||||
for (auto& coord : data.coords) {
|
||||
|
||||
Reference in New Issue
Block a user