expander: re-fix namespace-require/copy

The previous repair shifted by the wrong dimension.
This commit is contained in:
Matthew Flatt 2019-10-05 19:57:20 -06:00
parent 52f6098de8
commit 9bb5bc9352
2 changed files with 4 additions and 2 deletions

View File

@ -472,7 +472,7 @@
(define i-ns (namespace->module-namespace m-ns
(module-path-index-resolve (module-binding-module binding))
(phase+ (phase- (module-binding-phase binding) phase-level)
phase-shift)
(namespace-phase m-ns))
#:complain-on-failure? #t))
(define val (namespace-get-variable i-ns (module-binding-phase binding) (module-binding-sym binding)
(lambda () (error 'namespace-require/copy

View File

@ -28685,7 +28685,9 @@ static const char *startup_source =
"(let-values(((m-ns335_0) m-ns_0)"
"((temp336_0)(1/module-path-index-resolve(module-binding-module binding_0)))"
"((temp337_0)"
"(phase+(phase-(module-binding-phase binding_0) phase-level_0) phase-shift_0))"
"(phase+"
"(phase-(module-binding-phase binding_0) phase-level_0)"
"(namespace-phase m-ns_0)))"
"((temp338_0) #t))"
"(namespace->module-namespace82.1 #f temp338_0 unsafe-undefined m-ns335_0 temp336_0 temp337_0))))"
"(let-values(((val_0)"