blob: 7828f48720c5f942cafb6ea58eb4e51245c98226 (
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
|
$NetBSD: patch-modules_scim_novel__pinyin__imengine.cpp,v 1.1 2013/03/20 05:25:58 obache Exp $
* fixes bogus NULL usage, as Integer 0.
--- modules/scim/novel_pinyin_imengine.cpp.orig 2008-10-05 07:55:31.000000000 +0000
+++ modules/scim/novel_pinyin_imengine.cpp
@@ -1690,7 +1690,7 @@ PinyinInstance::calc_lookup_table (){
}
}
}else
- last_token = NULL;
+ last_token = 0;
PhraseItemWithFreq item;
@@ -1782,7 +1782,7 @@ PinyinInstance::calc_lookup_table (){
}
}
g_array_sort(m_phrase_items_with_freq, lookup_table_sort);
- phrase_token_t last_token = NULL;
+ phrase_token_t last_token = 0;
for ( size_t m = 0; m < m_phrase_items_with_freq->len; ++m){
PhraseItemWithFreq * item = &g_array_index(m_phrase_items_with_freq, PhraseItemWithFreq, m);
if ( last_token != item->m_token )
|