diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/adpcm/adpcm.cpp | 4 | ||||
-rw-r--r-- | test/StormTest.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d8d041..28f5280 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,9 +6,9 @@ set(LIBRARY_NAME storm) include(CMakeDependentOption) option(BUILD_SHARED_LIBS "Compile shared libraries" OFF) -cmake_dependent_option(STORM_BUILD_TESTS +option(STORM_BUILD_TESTS "Compile StormLib test application" OFF - "BUILD_TESTING" OFF # Stay coherent with CTest variables +# "BUILD_TESTING" OFF # Stay coherent with CTest variables ) set(SRC_FILES 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; diff --git a/test/StormTest.cpp b/test/StormTest.cpp index dc20920..e6ca2cb 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -37,7 +37,7 @@ #ifdef PLATFORM_WINDOWS
#define WORK_PATH_ROOT _T("E:\\Multimedia\\MPQs")
-static const TCHAR szListFileDir[] = { '1', '9', '9', '5', ' ', '-', ' ', 'T', 'e', 's', 't', ' ', 'M', 'P', 'Q', 's', '\\', 'l', 'i', 's', 't', 'f', 'i', 'l', 'e', 's', '-', 0x65B0, 0x5EFA, 0x6587, 0x4EF6, 0x5939, 0 };
+static const TCHAR szListFileDir[] = { '1', '9', '9', '5', ' ', '-', ' ', 'T', 'e', 's', 't', ' ', 'M', 'P', 'Q', 's', '\\', 'l', 'i', 's', 't', 'f', 'i', 'l', 'e', 's', '-', (TCHAR)0x65B0, (TCHAR)0x5EFA, (TCHAR)0x6587, (TCHAR)0x4EF6, (TCHAR)0x5939, 0 };
#endif
#ifdef PLATFORM_LINUX
|