row->action)), "action", 0, false);
ucl_object_insert_key (obj, ucl_object_fromdouble (
row->score), "score", 0, false);
- ucl_object_insert_key (obj,
- ucl_object_fromdouble (
- row->required_score), "required_score", 0, false);
+
+ if (!isnan (row->required_score)) {
+ ucl_object_insert_key (obj,
+ ucl_object_fromdouble (
+ row->required_score), "required_score", 0, false);
+ }
+ else {
+ ucl_object_insert_key (obj,
+ ucl_object_fromdouble (0.0), "required_score", 0, false);
+ }
+
ucl_object_insert_key (obj, ucl_object_fromstring (
row->symbols), "symbols", 0, false);
ucl_object_insert_key (obj, ucl_object_fromint (