Skip to content

Commit

Permalink
FIXED: Allow node ids > signed int.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Wielemaker authored and Jan Wielemaker committed May 30, 2017
1 parent b5dfa00 commit 3c1c654
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions c/hdt4pl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,10 +665,10 @@ get_search_id(term_t t, unsigned *id, unsigned flag, unsigned *flagp)
*flagp |= flag;
return TRUE;
} else
{ int i;
{ int64_t i;

if ( PL_get_integer_ex(t, &i) )
{ *id = (unsigned)i;
if ( PL_get_int64(t, &i) )
{ *id = (unsigned int)i;
return TRUE;
}
}
Expand Down

0 comments on commit 3c1c654

Please sign in to comment.