renamed symbols must be always greater than or equal to 0
This commit is contained in:
parent
e74f700c51
commit
514937662e
12
src/macro.c
12
src/macro.c
|
@ -119,14 +119,10 @@ pic_import(pic_state *pic, pic_value spec)
|
|||
for (xh_begin(lib->exports, &it); ! xh_isend(&it); xh_next(&it)) {
|
||||
|
||||
#if DEBUG
|
||||
if (it.e->val >= 0) {
|
||||
printf("* importing %s as %s\n",
|
||||
pic_symbol_name(pic, (long)it.e->key),
|
||||
pic_symbol_name(pic, it.e->val));
|
||||
}
|
||||
else {
|
||||
printf("* importing %s\n", pic_symbol_name(pic, (long)it.e->key));
|
||||
}
|
||||
assert(it.e->val >= 0);
|
||||
printf("* importing %s as %s\n",
|
||||
pic_symbol_name(pic, (long)it.e->key),
|
||||
pic_symbol_name(pic, it.e->val));
|
||||
#endif
|
||||
|
||||
xh_put_int(pic->lib->senv->name, (long)it.e->key, it.e->val);
|
||||
|
|
Loading…
Reference in New Issue