|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
[Muscle] minor BUG MCardPlugin
From: Karsten Ohme (widerstand
t-online.de)
Date: Wed Apr 06 2005 - 10:05:13 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The function getUShort16() muscleCardApplet.c in is not correct. After
an hours of work I recognized the || () instead of | (binary OR).
WRONG:
MSCUShort16 getUShort16(MSCPUChar8 srcValue) {
return (MSCUShort16)( ((srcValue[0]) << 8) || srcValue[1] );
}
CORRECT:
MSCUShort16 getUShort16(MSCPUChar8 srcValue) {
return (MSCUShort16)( ((srcValue[0]) << 8) | srcValue[1] );
}
_______________________________________________
Muscle mailing list
Muscle
lists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]