Eliminate compiler warnings.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 7 May 2009 05:31:56 +0000 (05:31 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 7 May 2009 05:31:56 +0000 (05:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71149 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PIC16/PIC16TargetAsmInfo.cpp

index ac4039baf7666d6460dae0ce1becfd529e1abdfb..731329e27793b4d1ae11a492bb4b48282cf940a1 100644 (file)
@@ -87,7 +87,7 @@ PIC16TargetAsmInfo::getBSSSectionForGlobal(const GlobalVariable *GV) const {
   // No BSS section spacious enough was found. Crate a new one.
   if (! FoundBSS) {
     char *name = new char[32];
-    sprintf (name, "udata.%d.# UDATA", BSSSections.size());
+    sprintf (name, "udata.%d.# UDATA", (int)BSSSections.size());
     const Section *NewSection = getNamedSection (name);
 
     FoundBSS = new PIC16Section(NewSection);
@@ -133,7 +133,7 @@ PIC16TargetAsmInfo::getIDATASectionForGlobal(const GlobalVariable *GV) const {
   // No IDATA section spacious enough was found. Crate a new one.
   if (! FoundIDATA) {
     char *name = new char[32];
-    sprintf (name, "idata.%d.# IDATA", IDATASections.size());
+    sprintf (name, "idata.%d.# IDATA", (int)IDATASections.size());
     const Section *NewSection = getNamedSection (name);
 
     FoundIDATA = new PIC16Section(NewSection);