diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-29 22:28:21 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-29 22:28:21 +0800 |
commit | e60aa50103d9b24819f3dc26c783c2237f873664 (patch) | |
tree | b886638fd90724e968b9201f9ab12369ba5e1113 /src/macros.cpp | |
parent | 2a0d3a03e3f32e383ed61beb2514ac3094fffb0f (diff) | |
download | mrust-e60aa50103d9b24819f3dc26c783c2237f873664.tar.gz |
Minor tweaks to handle libcore update
Diffstat (limited to 'src/macros.cpp')
-rw-r--r-- | src/macros.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/macros.cpp b/src/macros.cpp index d8d74d5a..296f6d40 100644 --- a/src/macros.cpp +++ b/src/macros.cpp @@ -523,8 +523,9 @@ bool Macro_HandlePattern(TTStream& lex, const MacroPatEnt& pat, unsigned int lay for( auto ent = g_macro_module; ent; ent = ent->m_prev )
{
const AST::Module& mm = *ent->m_item;
- for( const auto &m : mm.macros() )
+ for( unsigned int i = mm.macros().size(); i --; )
{
+ const auto& m = mm.macros()[i];
DEBUG("" << m.name);
if( m.name == name )
{
|