dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnet/include il_values.h,1.18,1.19


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnet/include il_values.h,1.18,1.19
Date: Sun, 30 Nov 2003 23:35:23 +0000

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv2021/include

Modified Files:
        il_values.h 
Log Message:


Fix an ANSI C oddity in "IL_READ_INT64" and "IL_READ_UINT64"
(thanks to Miroslaw Dobrzanski-Neumann).


Index: il_values.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_values.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** il_values.h 16 Feb 2003 10:50:00 -0000      1.18
--- il_values.h 30 Nov 2003 23:35:21 -0000      1.19
***************
*** 216,223 ****
  #define       IL_READ_INT64(buf)      \
                        (((ILInt64)(IL_READ_UINT32((buf)))) | \
!                        (((ILInt64)(IL_READ_INT32((buf) + 4))) << 32))
  #define       IL_READ_UINT64(buf)     \
                        (((ILUInt64)(IL_READ_UINT32((buf)))) | \
!                        (((ILUInt64)(IL_READ_UINT32((buf) + 4))) << 32))
  #endif
  ILNativeFloat _ILReadFloat(const unsigned char *buf);
--- 216,223 ----
  #define       IL_READ_INT64(buf)      \
                        (((ILInt64)(IL_READ_UINT32((buf)))) | \
!                        (((ILInt64)(IL_READ_INT32(((ILUInt8 *)(buf)) + 4))) << 
32))
  #define       IL_READ_UINT64(buf)     \
                        (((ILUInt64)(IL_READ_UINT32((buf)))) | \
!                        (((ILUInt64)(IL_READ_UINT32(((ILUInt8 *)(buf)) + 4))) 
<< 32))
  #endif
  ILNativeFloat _ILReadFloat(const unsigned char *buf);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]