mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-27 22:15:06 +02:00
Bugfix, extract string using the proper helper, not the symbol one
This commit is contained in:
parent
a47869a43f
commit
9b0b7af93e
1 changed files with 2 additions and 2 deletions
|
@ -868,9 +868,9 @@ string_type Cyc_symbol2string(object sym) {
|
|||
object Cyc_string2symbol(object str) {
|
||||
object sym;
|
||||
Cyc_check_str(str);
|
||||
sym = find_symbol_by_name(symbol_pname(str));
|
||||
sym = find_symbol_by_name(string_str(str));
|
||||
if (!sym) {
|
||||
sym = add_symbol_by_name(symbol_pname(str));
|
||||
sym = add_symbol_by_name(string_str(str));
|
||||
}
|
||||
return sym;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue