[llvm-commits] [llvm] r142315 - in /llvm/trunk:include/llvm/Object/COFF.h lib/Object/COFFObjectFile.cpp

Xu Zhongxing xuzhongxing at foxmail.com
Mon Oct 17 18:48:02 PDT 2011


@@ -553,13 +544,32 @@
 
 error_code COFFObjectFile::getSymbol(uint32_t index,
                                      const coff_symbol *&Result) const {
-  if (index > 0 && index < Header->NumberOfSymbols)
+  if (index >= 0 && index < Header->NumberOfSymbols)


Hi Michael, index is unsigned. It's always >= 0.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111018/bdb1790d/attachment.html>


More information about the llvm-commits mailing list