[sword-svn] r3255 - trunk/src/modules/common

scribe at crosswire.org scribe at crosswire.org
Mon Sep 15 13:02:10 MST 2014


Author: scribe
Date: 2014-09-15 13:02:09 -0700 (Mon, 15 Sep 2014)
New Revision: 3255

Modified:
   trunk/src/modules/common/xzcomprs.cpp
Log:
added cast to avoid compile errors on some machines


Modified: trunk/src/modules/common/xzcomprs.cpp
===================================================================
--- trunk/src/modules/common/xzcomprs.cpp	2014-08-27 12:08:51 UTC (rev 3254)
+++ trunk/src/modules/common/xzcomprs.cpp	2014-09-15 20:02:09 UTC (rev 3255)
@@ -158,7 +158,7 @@
 		size_t zpos = 0;
 		size_t bpos = 0;
 
-		switch (lzma_stream_buffer_decode(&memlimit, 0, NULL, (const uint8_t*)zbuf, &zpos, (size_t)zlen, (uint8_t*)buf, &bpos, (size_t)&blen)){
+		switch (lzma_stream_buffer_decode((uint64_t *)&memlimit, 0, NULL, (const uint8_t*)zbuf, &zpos, (size_t)zlen, (uint8_t*)buf, &bpos, (size_t)&blen)){
 			case LZMA_OK: SendChars(buf, bpos); slen = bpos; break;
 			case LZMA_FORMAT_ERROR: fprintf(stderr, "ERROR: format error encountered during decompression.\n"); break;
 			case LZMA_OPTIONS_ERROR: fprintf(stderr, "ERROR: options error encountered during decompression.\n"); break;




More information about the sword-cvs mailing list