mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 05:29:30 -06:00
further extend the API of the C runtime
This commit is contained in:
@@ -188,7 +188,7 @@ Java_org_grammaticalframework_pgf_PGF_getFunctionProb(JNIEnv* env, jobject self,
|
||||
PgfPGF* pgf = get_ref(env, self);
|
||||
GuPool* tmp_pool = gu_local_pool();
|
||||
PgfCId id = j2gu_string(env, jid, tmp_pool);
|
||||
double prob = pgf_function_prob(pgf, id);
|
||||
prob_t prob = pgf_function_prob(pgf, id);
|
||||
gu_pool_free(tmp_pool);
|
||||
|
||||
return prob;
|
||||
|
||||
Reference in New Issue
Block a user