|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [Muscle] minor BUG MCardPlugin
From: Damien Sauveron (sauveron
labri.fr)
Date: Thu Apr 07 2005 - 05:16:27 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ludovic Rousseau a écrit :
> On Apr 7, 2005 8:45 AM, Damien Sauveron <sauveron
labri.fr> wrote:
>
>>Ludovic Rousseau a écrit :
>>
>>>I corrected the code using + instead of | to avoid any confusion.
>>
>>"+" and "|" are not the same operation!
>
>
> Sure. But what is the difference in THIS particular case?
>
> MSCPUChar8 srcValue;
> ((MSCUShort16)srcValue[0]) << 8) + srcValue[1]
> versus
> ((MSCUShort16)srcValue[0]) << 8) | srcValue[1]
You are right. I should sleep more the nights!
Sorry.
Regards,
--
Damien Sauveron
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]