[LLVMbugs] [Bug 14977] New: StringRef::drop_front and drop_back should take size_t

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 17 00:14:19 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=14977

             Bug #: 14977
           Summary: StringRef::drop_front and drop_back should take size_t
           Product: new-bugs
           Version: 3.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rmann at latencyzero.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When compiling under Xcode x86_64 (standard Cocoa app template), I get warnings
in StringRef.h on lines 494 and 500, because type passed in to drop_XXX is
size_t, but the expected type is "unsigned (int)". size_t is unsigned long.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list