From c971755d98df8eeab716f0e5e94f83055857571c Mon Sep 17 00:00:00 2001 From: dhewg Date: Thu, 28 Jun 2012 13:30:44 +0200 Subject: [PATCH] s/WriteDeltaLongCounter/WriteDeltaIntCounter/ to match the argument type. --- idlib/BitMsg.cpp | 12 ++++++------ idlib/BitMsg.h | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/idlib/BitMsg.cpp b/idlib/BitMsg.cpp index 27be80d..9d679f3 100644 --- a/idlib/BitMsg.cpp +++ b/idlib/BitMsg.cpp @@ -281,10 +281,10 @@ void idBitMsg::WriteDeltaShortCounter( int oldValue, int newValue ) { /* ================ -idBitMsg::WriteDeltaLongCounter +idBitMsg::WriteDeltaIntCounter ================ */ -void idBitMsg::WriteDeltaLongCounter( int oldValue, int newValue ) { +void idBitMsg::WriteDeltaIntCounter( int oldValue, int newValue ) { int i, x; x = oldValue ^ newValue; @@ -887,16 +887,16 @@ void idBitMsgDelta::WriteDeltaShortCounter( int oldValue, int newValue ) { /* ================ -idBitMsgDelta::WriteDeltaLongCounter +idBitMsgDelta::WriteDeltaIntCounter ================ */ -void idBitMsgDelta::WriteDeltaLongCounter( int oldValue, int newValue ) { +void idBitMsgDelta::WriteDeltaIntCounter( int oldValue, int newValue ) { if ( newBase ) { newBase->WriteBits( newValue, 32 ); } if ( !base ) { - writeDelta->WriteDeltaLongCounter( oldValue, newValue ); + writeDelta->WriteDeltaIntCounter( oldValue, newValue ); changed = true; } else { int baseValue = base->ReadBits( 32 ); @@ -904,7 +904,7 @@ void idBitMsgDelta::WriteDeltaLongCounter( int oldValue, int newValue ) { writeDelta->WriteBits( 0, 1 ); } else { writeDelta->WriteBits( 1, 1 ); - writeDelta->WriteDeltaLongCounter( oldValue, newValue ); + writeDelta->WriteDeltaIntCounter( oldValue, newValue ); changed = true; } } diff --git a/idlib/BitMsg.h b/idlib/BitMsg.h index cd61047..bfc5bea 100644 --- a/idlib/BitMsg.h +++ b/idlib/BitMsg.h @@ -102,7 +102,7 @@ public: void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits ); void WriteDeltaByteCounter( int oldValue, int newValue ); void WriteDeltaShortCounter( int oldValue, int newValue ); - void WriteDeltaLongCounter( int oldValue, int newValue ); + void WriteDeltaIntCounter( int oldValue, int newValue ); bool WriteDeltaDict( const idDict &dict, const idDict *base ); void BeginReading( void ) const; // begin reading. @@ -472,7 +472,7 @@ public: void WriteDeltaFloat( float oldValue, float newValue, int exponentBits, int mantissaBits ); void WriteDeltaByteCounter( int oldValue, int newValue ); void WriteDeltaShortCounter( int oldValue, int newValue ); - void WriteDeltaLongCounter( int oldValue, int newValue ); + void WriteDeltaIntCounter( int oldValue, int newValue ); int ReadBits( int numBits ) const; int ReadChar( void ) const;