Skip to content

Commit 60a507c

Browse files
committed
Remove unnecessary call to std::abs
Fixes #480 Signed-off-by: Benn Snyder <[email protected]>
1 parent e7ddd36 commit 60a507c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenNI2-FreenectDriver/src/VideoStream.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace FreenectDriver
5252
if (timestamp < prev_timestamp)
5353
{
5454
uint32_t prev_int = static_cast<uint32_t>(prev_timestamp);
55-
uint64_t temp_delta = std::abs(timestamp - prev_int);
55+
uint64_t temp_delta = timestamp - prev_int;
5656
prev_timestamp += temp_delta;
5757
} else {
5858
prev_timestamp = timestamp;

0 commit comments

Comments
 (0)