Przeglądaj źródła

Removed a static_cast not required according to sonarqube.

Bart Hertog 5 lat temu
rodzic
commit
7d82c8d62b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/WireFormatter.h

+ 1 - 1
src/WireFormatter.h

@@ -128,7 +128,7 @@ namespace EmbeddedProto
       */
       static constexpr uint32_t MakeTag(const uint32_t field_number, const WireType type)
       {
-        return ((static_cast<uint32_t>(field_number) << 3) | static_cast<uint32_t>(type));
+        return ((field_number << 3) | static_cast<uint32_t>(type));
       }
 
       /**