[pure-lang-svn] SF.net SVN: pure-lang:[631] pure/trunk/symtable.cc
Status: Beta
Brought to you by:
agraef
|
From: <ag...@us...> - 2008-08-27 10:10:07
|
Revision: 631
http://pure-lang.svn.sourceforge.net/pure-lang/?rev=631&view=rev
Author: agraef
Date: 2008-08-27 10:10:15 +0000 (Wed, 27 Aug 2008)
Log Message:
-----------
Bugfix.
Modified Paths:
--------------
pure/trunk/symtable.cc
Modified: pure/trunk/symtable.cc
===================================================================
--- pure/trunk/symtable.cc 2008-08-27 09:16:10 UTC (rev 630)
+++ pure/trunk/symtable.cc 2008-08-27 10:10:15 UTC (rev 631)
@@ -47,8 +47,12 @@
sym_map& m = tab[modno];
sym_map::iterator it = m.find(s);
if (it == m.end() && modno >= 0) {
- m = tab[-1];
+ sym_map& m = tab[-1];
it = m.find(s);
+ if (it == m.end())
+ return 0;
+ else
+ return &it->second;
}
if (it == m.end())
return 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|