[llvm-commits] patch: CodeGen/BinaryObject.h explicit typecast

Ryan Flynn parseerror at gmail.com
Tue Jul 7 07:46:19 PDT 2009


BinaryObject.h was implicitly converting between uint{16,32,64}_t to
uint8_t (via 'foo & 255'), i replaced this with an explicit (uint8_t)
cast which is equivalent, faster and more correct (silences
type-related warnings). Also, following coding standards I replaced
post-increment with pre-increment.

Ryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CodeGen-BinaryObject-explicit-typecast.patch
Type: application/octet-stream
Size: 7851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090707/0b5f58f0/attachment.obj>


More information about the llvm-commits mailing list