summaryrefslogtreecommitdiffstats
path: root/src/text/Text.h
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-07-22 23:02:11 +0200
committerGitHub <noreply@github.com>2020-07-22 23:02:11 +0200
commit98dd771d6cf3adb7153700040f122cd0916d5eeb (patch)
tree5578c27b5739341d34def86586a68f1f1129e1bb /src/text/Text.h
parentREADME 64-bit preparation (diff)
parent64-bit on Windows (diff)
downloadre3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar
re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.gz
re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.bz2
re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.lz
re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.xz
re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.tar.zst
re3-98dd771d6cf3adb7153700040f122cd0916d5eeb.zip
Diffstat (limited to 'src/text/Text.h')
-rw-r--r--src/text/Text.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/text/Text.h b/src/text/Text.h
index bd6544d2..4be9b6e6 100644
--- a/src/text/Text.h
+++ b/src/text/Text.h
@@ -26,11 +26,11 @@ class CKeyArray
{
public:
CKeyEntry *entries;
- int numEntries;
+ int numEntries; // You can make this size_t if you want to exceed 32-bit boundaries, everything else should be ready.
CKeyArray(void) : entries(nil), numEntries(0) {}
~CKeyArray(void) { Unload(); }
- void Load(uint32 length, uint8 *data, int *offset);
+ void Load(size_t length, uint8 *data, intptr_t *offset);
void Unload(void);
void Update(wchar *chars);
CKeyEntry *BinarySearch(const char *key, CKeyEntry *entries, int16 low, int16 high);
@@ -45,11 +45,11 @@ class CData
{
public:
wchar *chars;
- int numChars;
+ int numChars; // You can make this size_t if you want to exceed 32-bit boundaries, everything else should be ready.
CData(void) : chars(nil), numChars(0) {}
~CData(void) { Unload(); }
- void Load(uint32 length, uint8 *data, int *offset);
+ void Load(size_t length, uint8 *data, intptr_t *offset);
void Unload(void);
};