summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2009-04-08 15:47:51 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2009-04-08 15:47:51 +0000
commitc4f954bce8cef70e9e3a13b17bd1b11601540c47 (patch)
treed0aa8c044cee6f9c41803dc9c5870aa9e01ed958
parent23f1ae8f324429bb946e0404009c66e39ac4f3ff (diff)
downloadenchant-c4f954bce8cef70e9e3a13b17bd1b11601540c47.tar.gz
win64 build fixes from Fridrich
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26058 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-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);