mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
assert non-0 lang code
This commit is contained in:
parent
9bb8c9cddf
commit
b40e9b7928
1 changed files with 3 additions and 1 deletions
|
@ -293,7 +293,9 @@ Java_org_eehouse_android_xw4_jni_XwJNI_dict_1getInfo
|
||||||
jDictBytes, jpath, NULL, check );
|
jDictBytes, jpath, NULL, check );
|
||||||
if ( NULL != dict ) {
|
if ( NULL != dict ) {
|
||||||
if ( NULL != jinfo ) {
|
if ( NULL != jinfo ) {
|
||||||
setInt( env, jinfo, "langCode", dict_getLangCode( dict ) );
|
XP_LangCode code = dict_getLangCode( dict );
|
||||||
|
XP_ASSERT( 0 < code );
|
||||||
|
setInt( env, jinfo, "langCode", code );
|
||||||
setInt( env, jinfo, "wordCount", dict_getWordCount( dict ) );
|
setInt( env, jinfo, "wordCount", dict_getWordCount( dict ) );
|
||||||
setString( env, jinfo, "md5Sum", dict_getMd5Sum( dict ) );
|
setString( env, jinfo, "md5Sum", dict_getMd5Sum( dict ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue