Skip to content

Commit 02bc905

Browse files
committed
repair for identifier handling
Repairs commit d67082e.
1 parent 35c996d commit 02bc905

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

racket/src/racket/src/compenv.c

+5-4
Original file line numberDiff line numberDiff line change
@@ -1911,13 +1911,14 @@ scheme_lookup_binding(Scheme_Object *find_id, Scheme_Comp_Env *env, int flags,
19111911
if (genv->module && genv->disallow_unbound) {
19121912
/* double-check for a local-module binding that's not in find_id's context;
19131913
see a similar test in scheme_check_top_identifier_bound() */
1914-
find_global_id = scheme_tl_id_sym(genv, find_id, NULL, 0, NULL, NULL);
1915-
if (!SAME_OBJ(find_global_id, SCHEME_STX_SYM(find_id))) {
1914+
if (SCHEME_STXP(find_id))
1915+
find_global_id = scheme_tl_id_sym(genv, find_id, NULL, 0, NULL, NULL);
1916+
else
1917+
find_global_id = NULL;
1918+
if (find_global_id && !SAME_OBJ(find_global_id, SCHEME_STX_SYM(find_id))) {
19161919
/* it's defined after all; fall through below assumes a binding
19171920
in the enclosing module */
19181921
} else {
1919-
/* If find_global_id is not find_id, then the module must have a
1920-
definition of the identifier. */
19211922
if (genv->disallow_unbound > 0) {
19221923
/* Free identifier. Maybe don't continue. */
19231924
if (flags & (SCHEME_SETTING | SCHEME_REFERENCING)) {

racket/src/racket/src/schvers.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
consistently.)
1414
*/
1515

16-
#define MZSCHEME_VERSION "6.0.1.9"
16+
#define MZSCHEME_VERSION "6.0.1.10"
1717

1818
#define MZSCHEME_VERSION_X 6
1919
#define MZSCHEME_VERSION_Y 0
2020
#define MZSCHEME_VERSION_Z 1
21-
#define MZSCHEME_VERSION_W 9
21+
#define MZSCHEME_VERSION_W 10
2222

2323
#define MZSCHEME_VERSION_MAJOR ((MZSCHEME_VERSION_X * 100) + MZSCHEME_VERSION_Y)
2424
#define MZSCHEME_VERSION_MINOR ((MZSCHEME_VERSION_Z * 1000) + MZSCHEME_VERSION_W)

0 commit comments

Comments
 (0)