fix list of atoms (Paulo Moura obs)
This commit is contained in:
parent
7038ea1958
commit
2c5fa4a65e
@ -117,14 +117,14 @@ static inline seq_type_t
|
|||||||
mod_to_type( Term mod USES_REGS )
|
mod_to_type( Term mod USES_REGS )
|
||||||
{
|
{
|
||||||
unsigned int flags = Yap_GetModuleEntry(mod)->flags;
|
unsigned int flags = Yap_GetModuleEntry(mod)->flags;
|
||||||
if (!(flags & DBLQ_MASK)) {
|
if (flags & DBLQ_ATOM) {
|
||||||
return YAP_STRING_CODES;
|
return YAP_STRING_ATOM;
|
||||||
} else if (flags & DBLQ_STRING) {
|
} else if (flags & DBLQ_STRING) {
|
||||||
return YAP_STRING_STRING;
|
return YAP_STRING_STRING;
|
||||||
} else if (flags & DBLQ_CHARS) {
|
} else if (flags & DBLQ_CHARS) {
|
||||||
return YAP_STRING_CHARS;
|
return YAP_STRING_ATOMS;
|
||||||
}
|
}
|
||||||
return YAP_STRING_ATOM;
|
return YAP_STRING_CODES;
|
||||||
}
|
}
|
||||||
|
|
||||||
// the routines
|
// the routines
|
||||||
|
Reference in New Issue
Block a user