Skip to content

Commit

Permalink
fixed static checker error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Aug 22, 2024
1 parent 8847788 commit 4297b7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/geo/GeoLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ bool GeoLib::writeBMP (const uint32_t* data, int width, int height, const char*
for(int x = 0; x < width; x++)
{
const int offset = (y * width) + x;
uint32_t value = data[offset] - min_val;
const uint32_t value = data[offset] - min_val;
const double normalized_pixel = (static_cast<double>(value) / static_cast<double>(max_val)) * 256.0;
uint8_t scaled_pixel = static_cast<uint8_t>(normalized_pixel);
fwrite(&scaled_pixel, 1, 1, bmp_file);
Expand Down

0 comments on commit 4297b7b

Please sign in to comment.