Skip to content

Commit

Permalink
Remove unnecessary call to std::abs
Browse files Browse the repository at this point in the history
Fixes #480

Signed-off-by: Benn Snyder <[email protected]>
  • Loading branch information
piedar committed Aug 28, 2016
1 parent e7ddd36 commit 60a507c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenNI2-FreenectDriver/src/VideoStream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace FreenectDriver
if (timestamp < prev_timestamp)
{
uint32_t prev_int = static_cast<uint32_t>(prev_timestamp);
uint64_t temp_delta = std::abs(timestamp - prev_int);
uint64_t temp_delta = timestamp - prev_int;
prev_timestamp += temp_delta;
} else {
prev_timestamp = timestamp;
Expand Down

0 comments on commit 60a507c

Please sign in to comment.