Add a missing SYNC_ALL in variable-ref
authorAndy Wingo <wingo@pobox.com>
Wed, 2 May 2012 10:59:11 +0000 (12:59 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 7 May 2012 18:19:09 +0000 (20:19 +0200)
* libguile/vm-i-system.c (variable-ref): Add a missing SYNC_ALL.

libguile/vm-i-system.c

index 2399fa0..b8c18f0 100644 (file)
@@ -310,6 +310,7 @@ VM_DEFINE_INSTRUCTION (25, variable_ref, "variable-ref", 0, 1, 1)
     {
       SCM var_name;
 
+      SYNC_ALL ();
       /* Attempt to provide the variable name in the error message.  */
       var_name = scm_module_reverse_lookup (scm_current_module (), x);
       vm_error_unbound (program, scm_is_true (var_name) ? var_name : x);