summaryrefslogtreecommitdiff
path: root/src/modules/genbook
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/genbook')
-rw-r--r--src/modules/genbook/rawgenbook/rawgenbook.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/genbook/rawgenbook/rawgenbook.cpp b/src/modules/genbook/rawgenbook/rawgenbook.cpp
index 6101241..41cd6e4 100644
--- a/src/modules/genbook/rawgenbook/rawgenbook.cpp
+++ b/src/modules/genbook/rawgenbook/rawgenbook.cpp
@@ -3,7 +3,7 @@
* rawgenbook.cpp - code for class 'RawGenBook'- a module that reads raw
* text files: ot and nt using indexs ??.bks ??.cps ??.vss
*
- * $Id: rawgenbook.cpp 2833 2013-06-29 06:40:28Z chrislit $
+ * $Id: rawgenbook.cpp 3439 2016-10-23 08:32:02Z scribe $
*
* Copyright 2002-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -133,7 +133,7 @@ SWBuf &RawGenBook::getRawEntryBuf() const {
void RawGenBook::setEntry(const char *inbuf, long len) {
- __u32 offset = archtosword32(bdtfd->seek(0, SEEK_END));
+ __u32 offset = (__u32)archtosword32(bdtfd->seek(0, SEEK_END));
__u32 size = 0;
TreeKeyIdx *key = ((TreeKeyIdx *)&(getTreeKey()));
@@ -144,7 +144,7 @@ void RawGenBook::setEntry(const char *inbuf, long len) {
bdtfd->write(inbuf, len);
- size = archtosword32(len);
+ size = (__u32)archtosword32(len);
memcpy(userData, &offset, 4);
memcpy(userData+4, &size, 4);
key->setUserData(userData, 8);