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 | d75a4b49f29ab769a1f3df1d0699642ca85b94f2 (patch) | |
tree | 39b3d0c0d144ab7234f71874d249fb260269d277 | |
parent | b9319b959c3ced6d52745e4d85cde988fbc800c7 (diff) | |
download | txr-d75a4b49f29ab769a1f3df1d0699642ca85b94f2.tar.gz txr-d75a4b49f29ab769a1f3df1d0699642ca85b94f2.tar.bz2 txr-d75a4b49f29ab769a1f3df1d0699642ca85b94f2.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); |