Quellcode durchsuchen

Val128 + operator

Brian Fiete vor 3 Jahren
Ursprung
Commit
e6a9e03b62
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 8 0
      BeefySysLib/util/Hash.h

+ 8 - 0
BeefySysLib/util/Hash.h

@@ -62,6 +62,14 @@ public:
 	{
 	{
 		return StrFormat("%lX%lX", mHigh, mLow);
 		return StrFormat("%lX%lX", mHigh, mLow);
 	}
 	}
+
+	Val128 operator+(int rLow)
+	{
+		Val128 result;
+		result.mLow += mLow + rLow;
+		result.mHigh = mHigh;
+		return result;
+	}
 };
 };
 
 
 static bool operator!=(const Val128& l, int rLow)
 static bool operator!=(const Val128& l, int rLow)