Fix wrong return values

master
Marc Gilleron 2020-01-19 01:22:48 +00:00
parent 45a34676b3
commit 2fe83ce154
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ inline float min(const float &a, const float &b) {
}
template <typename T>
inline float max(const T a, const T b) {
inline T max(const T a, const T b) {
return a > b ? a : b;
}

View File

@ -88,7 +88,7 @@ inline uint64_t real_to_raw_voxel(real_t value, VoxelBuffer::Depth depth) {
}
}
inline uint64_t raw_voxel_to_real(uint64_t value, VoxelBuffer::Depth depth) {
inline real_t raw_voxel_to_real(uint64_t value, VoxelBuffer::Depth depth) {
// Depths below 32 are normalized between -1 and 1
switch (depth) {
case VoxelBuffer::DEPTH_1_BIT: