diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-11-28 23:39:07 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-11-28 23:39:07 -0800 |
commit | ba94da1da968be68815249b3de2da0d67d7c966e (patch) | |
tree | 39b3d0c0d144ab7234f71874d249fb260269d277 | |
parent | 9e8a2788983de4322bb93baba23232d36ea4527d (diff) | |
download | txr-ba94da1da968be68815249b3de2da0d67d7c966e.tar.gz txr-ba94da1da968be68815249b3de2da0d67d7c966e.tar.bz2 txr-ba94da1da968be68815249b3de2da0d67d7c966e.zip |
intern-fb: bugfix: optional argument handling.
* lib.c (intern_fallback_intrinsic): The missing_ok parameter
of get_package must be given a true argument, because
package_in is optional. When it is missing, it is represented
by the colon symbol, and if missing_ok is false, then
get_package treats this colon symbol as the package name ""
(the name of that symbol).
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -5669,7 +5669,7 @@ val intern_fallback(val str, val package) val intern_fallback_intrinsic(val str, val package_in) { val self = lit("intern-fb"); - val package = get_package(self, package_in, nil); + val package = get_package(self, package_in, t); if (!stringp(str)) uw_throwf(error_s, lit("~a: name ~s isn't a string"), self, str, nao); |