summaryrefslogtreecommitdiffstats
path: root/src/text
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-12-27 03:23:37 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-27 03:23:37 +0100
commit36e64dbd22a7e5ec6fc33a5087ed9788f1874f84 (patch)
tree390b86b4bf74c2de93d74e854ece1487040e3469 /src/text
parentfix a struct init (diff)
downloadre3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar
re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.gz
re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.bz2
re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.lz
re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.xz
re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.tar.zst
re3-36e64dbd22a7e5ec6fc33a5087ed9788f1874f84.zip
Diffstat (limited to 'src/text')
-rw-r--r--src/text/Text.cpp6
-rw-r--r--src/text/Text.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/text/Text.cpp b/src/text/Text.cpp
index f3324fd7..0c63ced7 100644
--- a/src/text/Text.cpp
+++ b/src/text/Text.cpp
@@ -23,7 +23,7 @@ CText::Load(void)
{
uint8 *filedata;
char filename[32], type[4];
- intptr_t offset, length;
+ ssize_t offset, length;
size_t sectlen;
Unload();
@@ -176,7 +176,7 @@ CText::UpperCase(wchar *s)
void
-CKeyArray::Load(size_t length, uint8 *data, intptr_t *offset)
+CKeyArray::Load(size_t length, uint8 *data, ssize_t *offset)
{
size_t i;
uint8 *rawbytes;
@@ -256,7 +256,7 @@ CKeyArray::Search(const char *key)
void
-CData::Load(size_t length, uint8 *data, intptr_t *offset)
+CData::Load(size_t length, uint8 *data, ssize_t *offset)
{
size_t i;
uint8 *rawbytes;
diff --git a/src/text/Text.h b/src/text/Text.h
index 52c17e27..ed978a8b 100644
--- a/src/text/Text.h
+++ b/src/text/Text.h
@@ -26,7 +26,7 @@ public:
CKeyArray(void) : entries(nil), numEntries(0) {}
~CKeyArray(void) { Unload(); }
- void Load(size_t length, uint8 *data, intptr_t *offset);
+ void Load(size_t length, uint8 *data, ssize_t *offset);
void Unload(void);
void Update(wchar *chars);
CKeyEntry *BinarySearch(const char *key, CKeyEntry *entries, int16 low, int16 high);
@@ -45,7 +45,7 @@ public:
CData(void) : chars(nil), numChars(0) {}
~CData(void) { Unload(); }
- void Load(size_t length, uint8 *data, intptr_t *offset);
+ void Load(size_t length, uint8 *data, ssize_t *offset);
void Unload(void);
};