23 lines
777 B
Diff
23 lines
777 B
Diff
From fc32eea4ac9e514a7d210306cd9fa3a017dfe02c Mon Sep 17 00:00:00 2001
|
|
From: VemundH <vehandel@online.no>
|
|
Date: Tue, 30 Sep 2014 21:53:45 +0200
|
|
Subject: [PATCH] remove incorrect casts
|
|
|
|
---
|
|
include/boost/uuid/detail/uuid_x86.hpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/include/boost/uuid/detail/uuid_x86.hpp b/include/boost/uuid/detail/uuid_x86.hpp
|
|
index 1a329b0..5a2cdec 100644
|
|
--- a/include/boost/uuid/detail/uuid_x86.hpp
|
|
+++ b/include/boost/uuid/detail/uuid_x86.hpp
|
|
@@ -100,7 +100,7 @@ inline bool operator< (uuid const& lhs, uuid const& rhs) BOOST_NOEXCEPT
|
|
cmp = (cmp - 1u) ^ cmp;
|
|
rcmp = (rcmp - 1u) ^ rcmp;
|
|
|
|
- return static_cast< uint16_t >(cmp) < static_cast< uint16_t >(rcmp);
|
|
+ return cmp < rcmp;
|
|
}
|
|
|
|
} // namespace uuids
|