fix list of atoms (Paulo Moura obs)

This commit is contained in:
Vítor Santos Costa 2014-12-02 02:34:28 +00:00
parent 7038ea1958
commit 2c5fa4a65e
1 changed files with 4 additions and 4 deletions

View File

@ -117,14 +117,14 @@ static inline seq_type_t
mod_to_type( Term mod USES_REGS )
{
unsigned int flags = Yap_GetModuleEntry(mod)->flags;
if (!(flags & DBLQ_MASK)) {
return YAP_STRING_CODES;
if (flags & DBLQ_ATOM) {
return YAP_STRING_ATOM;
} else if (flags & DBLQ_STRING) {
return YAP_STRING_STRING;
} else if (flags & DBLQ_CHARS) {
return YAP_STRING_CHARS;
return YAP_STRING_ATOMS;
}
return YAP_STRING_ATOM;
return YAP_STRING_CODES;
}
// the routines