> How about instead changing
>
> >     dev->toggle[out] |= bit << ep;
>
> to
>
> >     if (bit)
> >             dev->toggle[out] |= 1 << ep;
>
> Less efficient, but if it avoids a bug it's worth it.

What about

        dev->toggle[out] |= (!!bit) << ep;

?

Duncan.

PS: Since the previous version worked, and this one doesn't,
what changed?  It must be the argument types, right?


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to