aboutsummaryrefslogtreecommitdiffstats
path: root/core/module-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/module-list.c')
-rw-r--r--core/module-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/module-list.c b/core/module-list.c
index 57e44c4..2f2c359 100644
--- a/core/module-list.c
+++ b/core/module-list.c
@@ -2072,7 +2072,7 @@ bool pure_cell_fits(uint8_t kind, PureCell cell) {
}
bool pure_cell_as(uint8_t from, uint8_t to, PureCell *cell) {
- if (from == to) return true;
+ if (from == to || (from == PURE_CELL_TEXT && to == PURE_CELL_BYTES)) return true; /* a text is bytes */
if (pure_cell_text(from) || pure_cell_text(to)) return false;
if (to == PURE_CELL_INTEGER) { /* a whole number in range: -2^63 is, 2^63 is not */
double v = cell->num;