diff --git a/src/etc-internal.h b/src/etc-internal.h
index 67c0a25..64a6c74 100644
--- a/src/etc-internal.h
+++ b/src/etc-internal.h
@@ -270,6 +270,11 @@ struct NormValue
 		norm = unNorm / 255.0;
 	}
 
+	bool operator ==(int value) const
+	{
+		return unNorm == clamp(value, 0, 255);
+	}
+
 	operator int() const
 	{
 		return unNorm;