[Clam-devel] [PATCH] Region

Moritz FISER m.fiser at student.tugraz.at
Wed Sep 5 04:14:29 PDT 2007


Changed long mPos in the Region class to long long to allow for a  
longer life cycle of Clam Networks.
-------------- next part --------------
Index: Region.cxx
===================================================================
--- Region.cxx	(revision 10482)
+++ Region.cxx	(working copy)
@@ -34,7 +34,7 @@
 {
 }
 
-const long & Region::Pos() const 
+const long long & Region::Pos() const 
 {
 	return mPos;
 }
@@ -59,7 +59,7 @@
 	mBeginDistance = dist;		
 }
 
-void Region::Pos( const long & pos )
+void Region::Pos( const long long & pos )
 {
 	mPos = pos;
 }
Index: Region.hxx
===================================================================
--- Region.hxx	(revision 10482)
+++ Region.hxx	(working copy)
@@ -36,12 +36,12 @@
 	Region();
 	virtual ~Region();
 
-	const long& Pos() const;
+	const long long& Pos() const;
 	const int& Size() const;
 	const int& Hop() const;
 	const int& BeginDistance();
 
-	void Pos( const long & pos );
+	void Pos( const long long & pos );
 	void Size( const int & size );
 	void Hop( const int & hop );
 	void BeginDistance( const int & dist );
@@ -56,7 +56,7 @@
  	virtual void SizeChanged(const int & newSize) = 0;
 
 private:
-	long mPos;
+	long long mPos;
 	int mSize;
 	int mHop;
 	


More information about the clam-devel mailing list