OSEC

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 (sauveronlabri.fr)
Date: Thu Apr 07 2005 - 05:16:27 CDT


Ludovic Rousseau a écrit :
> On Apr 7, 2005 8:45 AM, Damien Sauveron <sauveronlabri.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
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle