# HG changeset patch
# User Mario de Sousa <msousa@fe.up.pt>
# Date 1352466498 0
# Node ID d475ae61c7f838a104ee2d0b62df467d6a9eebd6
# Parent  b051d19d24426fd82245cd51d51324b5ab30bdea
Fix one more bug - upper_bound() works a little differently to what we want!

diff -r b051d19d2442 -r d475ae61c7f8 util/dsymtable.hh
--- a/util/dsymtable.hh	Thu Nov 08 17:54:48 2012 +0000
+++ b/util/dsymtable.hh	Fri Nov 09 13:08:18 2012 +0000
@@ -106,7 +106,7 @@
     iterator lower_bound(const symbol_c *symbol)     {return lower_bound(symbol_to_string(symbol));}
     
     /* Search for the first entry with key greater than identifier_str. Will return end() if not found */
-    iterator upper_bound(const char *identifier_str) {return _base.upper_bound(identifier_str);}
+    iterator upper_bound(const char *identifier_str) {return ((count(identifier_str) == 0)? _base.end() : _base.upper_bound(identifier_str));}
     iterator upper_bound(const symbol_c *symbol)     {return upper_bound(symbol_to_string(symbol));}
 
     /* get the value to which an iterator is pointing to... */