• R/O
  • HTTP
  • SSH
  • HTTPS

mhash384: Commit

MHash-384 development repository


Commit MetaInfo

Revision09c4d716c27debf932dd98bcd27f78f9c745ba7b (tree)
Time2020-01-06 02:06:04
AuthorLoRd_MuldeR <mulder2@gmx....>
CommiterLoRd_MuldeR

Log Message

Using std::addressof() where appropriate.

Change Summary

Incremental Difference

--- a/libmhash384/include/mhash384.h
+++ b/libmhash384/include/mhash384.h
@@ -106,7 +106,7 @@ public:
106106 typedef typename std::iterator_traits<iterator_type>::value_type value_type;
107107 for (iterator_type iter = first; iter != last; ++iter)
108108 {
109- update(reinterpret_cast<const std::uint8_t*>(&(*iter)), sizeof(value_type));
109+ update(reinterpret_cast<const std::uint8_t*>(std::addressof(*iter)), sizeof(value_type));
110110 }
111111 }
112112
Show on old repository browser