[llvm-commits] CVS: llvm/lib/Bytecode/Writer/WriterPrimitives.h
    Chris Lattner 
    lattner at cs.uiuc.edu
       
    Thu Jun 24 19:12:01 PDT 2004
    
    
  
Changes in directory llvm/lib/Bytecode/Writer:
WriterPrimitives.h updated: 1.4 -> 1.5
---
Log message:
fix warnings
---
Diffs of the changes:  (+2 -2)
Index: llvm/lib/Bytecode/Writer/WriterPrimitives.h
diff -u llvm/lib/Bytecode/Writer/WriterPrimitives.h:1.4 llvm/lib/Bytecode/Writer/WriterPrimitives.h:1.5
--- llvm/lib/Bytecode/Writer/WriterPrimitives.h:1.4	Thu Jan 15 00:11:30 2004
+++ llvm/lib/Bytecode/Writer/WriterPrimitives.h	Thu Jun 24 19:11:25 2004
@@ -62,7 +62,7 @@
     
     // Nope, we are bigger than a character, output the next 7 bits and set the
     // high bit to say that there is more coming...
-    out.push_back(0x80 | (i & 0x7F));
+    out.push_back(0x80 | ((unsigned char)i & 0x7F));
     i >>= 7;  // Shift out 7 bits now...
   }
 }
@@ -76,7 +76,7 @@
     
     // Nope, we are bigger than a character, output the next 7 bits and set the
     // high bit to say that there is more coming...
-    out.push_back(0x80 | (i & 0x7F));
+    out.push_back(0x80 | ((unsigned char)i & 0x7F));
     i >>= 7;  // Shift out 7 bits now...
   }
 }
    
    
More information about the llvm-commits
mailing list