]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Adding a comment marking readPsid & co issue origin
authorFrancis Dupont <fdupont@isc.org>
Mon, 19 Dec 2016 17:28:49 +0000 (18:28 +0100)
committerFrancis Dupont <fdupont@isc.org>
Mon, 19 Dec 2016 17:28:49 +0000 (18:28 +0100)
src/lib/dhcp/tests/option_custom_unittest.cc
src/lib/dhcp/tests/option_data_types_unittest.cc

index f897958ff8b65bfeb71193ede3b4b49abf7318e9..c24c6b77951ce30f7dc35c9128835b5d458d439b 100644 (file)
@@ -99,6 +99,7 @@ public:
     /// @tparam integer type.
     template<typename T>
     void writeInt(T value, std::vector<uint8_t>& buf) {
+        // This loop is incorrectly compiled by some old g++?!
         for (int i = 0; i < sizeof(T); ++i) {
             buf.push_back(value >> ((sizeof(T) - i - 1) * 8) & 0xFF);
         }
index fae60eb82a23b4692b8b7043e71929773bd48aa5..cb914b2447d19a39e0d1db17950f3d72b9c77a00 100644 (file)
@@ -44,6 +44,7 @@ public:
     /// @tparam integer type.
     template<typename T>
     void writeInt(T value, std::vector<uint8_t>& buf) {
+        // This loop is incorrectly compiled by some old g++?!
         for (int i = 0; i < sizeof(T); ++i) {
             buf.push_back(value >> ((sizeof(T) - i - 1) * 8) & 0xFF);
         }