diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-22 22:56:46 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-22 22:56:46 -0700 |
commit | 0b36ee3a4bbfa253670a05c7079420d06b0409d6 (patch) | |
tree | c36f6f7933210f4536c76f1f44d9aa10205daa5c | |
parent | d984f1ffd8448f10f60747e88d1f854be63a7053 (diff) | |
download | txr-0b36ee3a4bbfa253670a05c7079420d06b0409d6.tar.gz txr-0b36ee3a4bbfa253670a05c7079420d06b0409d6.tar.bz2 txr-0b36ee3a4bbfa253670a05c7079420d06b0409d6.zip |
Bugfix: sub function not handling lazy strings.
This bug means that range indexing doesn't work on
lazy strings. Ouch!
* lib.c (sub): Added missing LSTR switch case.
-rw-r--r-- | lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6769,6 +6769,7 @@ val sub(val seq, val from, val to) return sub_list(seq, from, to); case LIT: case STR: + case LSTR: return sub_str(seq, from, to); case VEC: return sub_vec(seq, from, to); |