From 9b7c8c746b3197cd094208918183823e04d826a6 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Thu, 12 May 2016 20:12:01 -0700 Subject: [PATCH] Add signed equality operators to FourCC --- hecl/include/hecl/hecl.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hecl/include/hecl/hecl.hpp b/hecl/include/hecl/hecl.hpp index 8e9541880..75c6836dc 100644 --- a/hecl/include/hecl/hecl.hpp +++ b/hecl/include/hecl/hecl.hpp @@ -518,6 +518,8 @@ public: bool operator!=(const FourCC& other) const {return num != other.num;} bool operator==(const char* other) const {return num == *(uint32_t*)other;} bool operator!=(const char* other) const {return num != *(uint32_t*)other;} + bool operator==(int32_t other) const { return num == other;} + bool operator!=(int32_t other) const { return num != other;} bool operator==(uint32_t other) const {return num == other;} bool operator!=(uint32_t other) const {return num != other;} std::string toString() const {return std::string(fcc, 4);}