summaryrefslogtreecommitdiff
path: root/src/myspell/dictmgr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/myspell/dictmgr.cxx')
-rw-r--r--src/myspell/dictmgr.cxx2
1 files changed, 1 insertions, 1 deletions
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);