mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Handle warnings and coding style adaptations
This commit is contained in:
@@ -571,11 +571,11 @@ bool TSP::writeCache() {
|
||||
}
|
||||
|
||||
float TSP::spatialError(unsigned int brickIndex) const {
|
||||
return *reinterpret_cast<const float*>(_data[brickIndex*NUM_DATA + SPATIAL_ERR]);
|
||||
return *reinterpret_cast<const float*>(&_data[brickIndex*NUM_DATA + SPATIAL_ERR]);
|
||||
}
|
||||
|
||||
float TSP::temporalError(unsigned int brickIndex) const {
|
||||
return *reinterpret_cast<const float*>(_data[brickIndex*NUM_DATA + TEMPORAL_ERR]);
|
||||
return *reinterpret_cast<const float*>(&_data[brickIndex*NUM_DATA + TEMPORAL_ERR]);
|
||||
}
|
||||
|
||||
unsigned int TSP::firstOctreeChild(unsigned int brickIndex) const {
|
||||
|
||||
Reference in New Issue
Block a user