On Sat, Dec 25, 2010 at 10:21 PM, Dongsheng Song
<dongsheng.s...@gmail.com> wrote:
> Hi Jones,
>
> Your commit b63ab17 caused VC2010 error C2070:
>
> bufferevent_async.c(409) : error C2070: 'unsigned int': illegal sizeof operand
> bufferevent_async.c(434) : error C2070: 'unsigned int': illegal sizeof operand
> bufferevent_async.c(473) : error C2070: 'unsigned int': illegal sizeof operand
>
> Because you can not use sizeof on bitfield, here is my patch:

How about this patch instead; it ensures that EVUTIL_ASSERT() still
counts as using a variable, while not breaking when using it with
bitfields. Does it work for you?

-- 
Nick

Attachment: 0001-Fix-compilation-on-Windows-with-NDEBUG.patch
Description: Binary data

Reply via email to