Skip to content

Commit

Permalink
Fixed type
Browse files Browse the repository at this point in the history
  • Loading branch information
Zang3th committed Apr 22, 2024
1 parent b6e769e commit d3bec53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Engine/Core/Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Engine
const float diff = max - min;
value = diff == 0.0f ? 0.5f : (value - min) / diff;
const float divider = 0.25f;
const float number = floorf(value / divider);
const uint8 number = (uint8)floorf(value / divider);
const float pos = (value - number * divider) / divider;

glm::vec3 retVec{0.0f};
Expand Down
1 change: 1 addition & 0 deletions Engine/Core/Utility.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include "glm.hpp"
#include "Types.hpp"

#include <cmath>

Expand Down

0 comments on commit d3bec53

Please sign in to comment.