changeset 11996:8c2a1c876c2c
release-3-2-x
fix context restoration in error state
author |
Jaroslav Hajek <highegg@gmail.com> |
date |
Tue, 16 Jun 2009 10:57:30 +0200 |
parents |
1ffb54887c42 |
children |
5530fe42c83b |
files |
src/ChangeLog src/symtab.h |
diffstat |
2 files changed, 9 insertions(+), 3 deletions(-)
[+]
|
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-16 Jaroslav Hajek <highegg@gmail.com>
+
+ * symtab.h (symbol_table::set_scope_and_context): Avoid checking
+ error_state for setting context.
+
2009-06-12 Kai NODA <nodakai@gmail.com>
* ls-mat4.h: Fix include guard
--- a/src/symtab.h
+++ b/src/symtab.h
@@ -939,11 +939,12 @@
instance = p->second;
xcurrent_scope = scope;
+
+ xcurrent_context = context;
}
}
-
- if (! error_state)
- xcurrent_context = context;
+ else
+ xcurrent_context = context;
}
}