Skip to content

Commit

Permalink
FIXED: trie_gen_compiled/3: deal with small integer value
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed May 14, 2024
1 parent 5345c4d commit c197aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pl-trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -2970,9 +2970,9 @@ compile_trie_node(DECL_LD trie_node *n, trie_compile_state *state)
{ add_vmi(state, T_VALUE);
if ( !isRecord(n->value) )
{ if ( isAtom(n->value) )
{ add_vmi_d(state, T_ATOM, (code)n->value);
{ add_vmi_d(state, T_ATOM, word2code(n->value));
} else
{ add_vmi_d(state, T_SMALLINT, (code)n->value);
{ add_smallint(state, T_SMALLINT, T_SMALLINTW, n->value);
}
} else
{ term_t t2;
Expand Down

0 comments on commit c197aeb

Please sign in to comment.