aboutsummaryrefslogtreecommitdiff
path: root/src/adpcm/adpcm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/adpcm/adpcm.cpp')
-rw-r--r--src/adpcm/adpcm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adpcm/adpcm.cpp b/src/adpcm/adpcm.cpp
index e551bda..c8086ab 100644
--- a/src/adpcm/adpcm.cpp
+++ b/src/adpcm/adpcm.cpp
@@ -101,9 +101,9 @@ class TADPCMStream
return true;
}
- int LengthProcessed(void * pvBuffer)
+ int LengthProcessed(void * pvOutBuffer)
{
- return pbBuffer - (unsigned char *)pvBuffer;
+ return (int)((unsigned char *)pbBuffer - (unsigned char *)pvOutBuffer);
}
unsigned char * pbBufferEnd;