[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnet/engine lib_enum.c,1.6,1.7
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/engine lib_enum.c,1.6,1.7 |
Date: |
Sun, 20 Jul 2003 13:17:19 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv2646/engine
Modified Files:
lib_enum.c
Log Message:
Fix signed issues in masking in Enum values
Index: lib_enum.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_enum.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** lib_enum.c 21 Jun 2003 05:36:35 -0000 1.6
--- lib_enum.c 20 Jul 2003 17:17:17 -0000 1.7
***************
*** 225,229 ****
if(constBufLen >= 1)
{
! *value = ((ILInt64)(*((ILInt8
*)constBuf))) & mask;
return last;
}
--- 225,230 ----
if(constBufLen >= 1)
{
! *value = (ILInt64)((*((ILInt8
*)constBuf))
!
& (ILInt8) mask);
return last;
}
***************
*** 235,239 ****
if(constBufLen >= 1)
{
! *value = ((ILInt64)(*((ILUInt8
*)constBuf))) & mask;
return last;
}
--- 236,241 ----
if(constBufLen >= 1)
{
! *value = (ILInt64)((*((ILUInt8
*)constBuf))
!
& (ILUInt8) mask);
return last;
}
***************
*** 245,249 ****
if(constBufLen >= 2)
{
! *value =
((ILInt64)IL_READ_INT16(constBuf)) & mask;
return last;
}
--- 247,252 ----
if(constBufLen >= 2)
{
! *value =
(ILInt64)((IL_READ_INT16(constBuf))
!
& (ILInt16) mask);
return last;
}
***************
*** 255,259 ****
if(constBufLen >= 2)
{
! *value =
((ILInt64)IL_READ_UINT16(constBuf)) & mask;
return last;
}
--- 258,263 ----
if(constBufLen >= 2)
{
! *value =
(ILInt64)((IL_READ_UINT16(constBuf))
!
& (ILUInt16) mask);
return last;
}
***************
*** 265,269 ****
if(constBufLen >= 4)
{
! *value =
((ILInt64)IL_READ_INT32(constBuf)) & mask;
return last;
}
--- 269,274 ----
if(constBufLen >= 4)
{
! *value =
(ILInt64)((IL_READ_INT32(constBuf))
!
& (ILInt32) mask);
return last;
}
***************
*** 275,279 ****
if(constBufLen >= 4)
{
! *value =
((ILInt64)IL_READ_UINT32(constBuf)) & mask;
return last;
}
--- 280,285 ----
if(constBufLen >= 4)
{
! *value =
(ILInt64)((IL_READ_UINT32(constBuf))
!
& (ILUInt32) mask);
return last;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/engine lib_enum.c,1.6,1.7,
Gopal.V <address@hidden> <=