diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-12 13:48:10 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2007-08-12 13:48:10 +0000 |
commit | 92ad72608baca7f3a8a6063745714d38d1ae123f (patch) | |
tree | a569e250a62234defdb4f8a61e7f23b19cd709c6 /chinese/xsim/files/patch-tableimc.h | |
parent | The master sites are down for some days, then mirror the tarballs. (diff) |
Fix build on CURRENT 64bit archs
Notes
Notes:
svn path=/head/; revision=197526
Diffstat (limited to 'chinese/xsim/files/patch-tableimc.h')
-rw-r--r-- | chinese/xsim/files/patch-tableimc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chinese/xsim/files/patch-tableimc.h b/chinese/xsim/files/patch-tableimc.h new file mode 100644 index 000000000000..9e5b16f7cd19 --- /dev/null +++ b/chinese/xsim/files/patch-tableimc.h @@ -0,0 +1,11 @@ +--- plugins/IMs/table/tableimc.h.orig 2007-08-12 15:38:33.000000000 +0200 ++++ plugins/IMs/table/tableimc.h 2007-08-12 15:38:58.000000000 +0200 +@@ -23,7 +23,7 @@ + uint8_t sort_index; + wchar_t w[MAX_WORD_LEN + 1]; + +- size_t si_size() { return (uint32_t) w - (uint32_t)&sort_index; } ++ size_t si_size() { return (uintptr_t) w - (uintptr_t)&sort_index; } + size_t size(){ return si_size() + (wcslen(w) + 1) * sizeof(wchar_t); } + void copy(struct Word_Rec_tag * val) { memcpy(this, val, sizeof(Word_Rec_tag));} + }Word_Rec; |