Patch #2896 2010-01-01 14:24

techy

Unsigned range underflow bug in the new "open include"
Download
2896-Unsigned_range.patch (486 bytes)
Category
Plugin::Bugfix
Status
Accepted
Close date
2010-01-27 05:39
Assigned to
mortenmacfly
Index: src/plugins/codecompletion/codecompletion.cpp
===================================================================
--- src/plugins/codecompletion/codecompletion.cpp    (revision 6015)
+++ src/plugins/codecompletion/codecompletion.cpp    (working copy)
@@ -1925,7 +1925,7 @@
     }
 
     // Remove duplicates
-    for (int i = 0; i < foundSet.Count() - 1; i++)
+    for (int i = 0; i < (int)foundSet.Count() - 1; i++)
     {
         for (int j = i + 1; j < foundSet.Count(); )
         {
techy 2010-01-01 14:28

Argh, when the include file cannot be found, the remove duplicates changes to a benchmark of how long it takes on your computer to count to 2^32. Sorry for that bug - hope I fixed more issues than the ones I introduced ;-).

techy 2010-01-26 21:51

Appears to be fixed in the mainline, can be closed I guess...