Hi Kenton,

The attached patch patches two files:
  - coded_stream.h: disables "cast to smaller types" runtime checks in that
file, for Visual C++ >= 2003. This was the "least invasive" fix. I can
change it if you prefer.
  - common.h: sets the __BYTE_ORDER to __LITTLE_ENDIAN for MSVC, which
enables the "copy full byte" optimizations (e.g. in coded_stream.h line
744).


Nathan


On Tue, Mar 23, 2010 at 5:00 PM, Kenton Varda <ken...@google.com> wrote:

> The loss of data is intentional.  I've never seen MSVC or any other
> compiler complain about this before.  Feel free to send a patch adding the
> bit masks it asks for.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Attachment: vc2008_patch.patch
Description: Binary data

Reply via email to