[llvm-commits] [llvm] r74929 - /llvm/trunk/include/llvm/CodeGen/BinaryObject.h

Misha Brukman brukman at gmail.com
Tue Jul 7 11:35:41 PDT 2009


2009/7/7 Chris Lattner <sabre at nondot.org>

> -    Data.push_back((W >> 0) & 255);
> -    Data.push_back((W >> 8) & 255);
> +    Data.push_back((uint8_t)(W >> 0));
> +    Data.push_back((uint8_t)(W >> 8));


These are all C-style casts, rather than C++-style casts, e.g.
static_cast<uint8_t>(value) .
Is there a preference for C-style casts in LLVM?  I thought we were trying
to stick with C++ here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090707/537a8e7c/attachment.html>


More information about the llvm-commits mailing list