summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/myspell/csutil.cxx2
-rw-r--r--src/myspell/dictmgr.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/myspell/csutil.cxx b/src/myspell/csutil.cxx
index e282754..388da00 100644
--- a/src/myspell/csutil.cxx
+++ b/src/myspell/csutil.cxx
@@ -234,7 +234,7 @@ int flag_bsearch(unsigned short flags[], unsigned short flag, int length) {
}
if (dp) {
*stringp = dp+1;
- int nc = (int)((unsigned long)dp - (unsigned long)mp);
+ int nc = (int)((size_t)dp - (size_t)mp);
*(mp+nc) = '\0';
return mp;
} else {
diff --git a/src/myspell/dictmgr.cxx b/src/myspell/dictmgr.cxx
index 5594582..926b50b 100644
--- a/src/myspell/dictmgr.cxx
+++ b/src/myspell/dictmgr.cxx
@@ -133,7 +133,7 @@ char * DictMgr::mystrsep(char ** stringp, const char delim)
char * dp = (char *)memchr(mp,(int)((unsigned char)delim),n);
if (dp) {
*stringp = dp+1;
- int nc = (int)((unsigned long)dp - (unsigned long)mp);
+ int nc = (int)((size_t)dp - (size_t)mp);
rv = (char *) malloc(nc+1);
if (rv) {
memcpy(rv,mp,nc);