blob: 3b6f0f5d06a512b8b8b080e45c81d8feb4200158 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
diff -Naur xsim-0.3.9.4.orig/plugins/IMs/jianpin/simpleimc.h xsim-0.3.9.4/plugins/IMs/jianpin/simpleimc.h
--- xsim-0.3.9.4.orig/plugins/IMs/jianpin/simpleimc.h 2002-10-22 18:01:04.000000000 +0900
+++ xsim-0.3.9.4/plugins/IMs/jianpin/simpleimc.h 2007-08-20 23:15:06.000000000 +0900
@@ -45,7 +45,7 @@
uint16_t access_count;
wchar_t w[MAX_WORD_LEN + 1];
- size_t ac_size() { return (uint32_t) w - (uint32_t)&access_count; }
+ size_t ac_size() { return (size_t) w - (size_t)&access_count; }
size_t size(){ return ac_size() + wcslen(w) * sizeof(wchar_t); }
void copy(struct Word_Rec_tag * val) { memcpy(this, val, sizeof(Word_Rec_tag));}
}Word_Rec;
diff -Naur xsim-0.3.9.4.orig/plugins/IMs/table/tableimc.h xsim-0.3.9.4/plugins/IMs/table/tableimc.h
--- xsim-0.3.9.4.orig/plugins/IMs/table/tableimc.h 2002-09-13 20:34:03.000000000 +0900
+++ xsim-0.3.9.4/plugins/IMs/table/tableimc.h 2007-08-20 23:15:47.000000000 +0900
@@ -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 (size_t) w - (size_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;
diff -Naur xsim-0.3.9.4.orig/xsim/ic.cpp xsim-0.3.9.4/xsim/ic.cpp
--- xsim-0.3.9.4.orig/xsim/ic.cpp 2002-10-01 14:41:23.000000000 +0900
+++ xsim-0.3.9.4/xsim/ic.cpp 2007-08-20 23:16:11.000000000 +0900
@@ -101,7 +101,7 @@
on_stat = 0;
}
-int TIC::alive()
+long TIC::alive()
{
- return (int)im;
+ return (long)im;
}
diff -Naur xsim-0.3.9.4.orig/xsim/ic.h xsim-0.3.9.4/xsim/ic.h
--- xsim-0.3.9.4.orig/xsim/ic.h 2002-07-15 00:14:24.000000000 +0900
+++ xsim-0.3.9.4/xsim/ic.h 2007-08-20 23:16:52.000000000 +0900
@@ -76,14 +76,14 @@
void set_im(TIM * val);
TIMC * get_imc();
- int has_imc() { return (int)imc; }
+ long has_imc() { return (long)imc; }
void init(int init_mode, TIM * val);
static TIC * get_focus_ic() { return focused_ic; }
IC * get_IC() { return &ic_; };
- int alive();
+ long alive();
Window get_client_win() { return ic_.client_win; }
int has_focus() { return (focused_ic == this); }
|