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

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

[dotgnu-pnet-commits] pnet ChangeLog codegen/cg_scope.c


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] pnet ChangeLog codegen/cg_scope.c
Date: Sat, 26 May 2007 07:23:19 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnet
Changes by:     Klaus Treichel <ktreichel>      07/05/26 07:23:19

Modified files:
        .              : ChangeLog 
        codegen        : cg_scope.c 

Log message:
        Fix a compiler warning in codegen/cg_scope.c.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnet/ChangeLog?cvsroot=dotgnu-pnet&r1=1.3457&r2=1.3458
http://cvs.savannah.gnu.org/viewcvs/pnet/codegen/cg_scope.c?cvsroot=dotgnu-pnet&r1=1.20&r2=1.21

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ChangeLog,v
retrieving revision 1.3457
retrieving revision 1.3458
diff -u -b -r1.3457 -r1.3458
--- ChangeLog   25 May 2007 11:23:55 -0000      1.3457
+++ ChangeLog   26 May 2007 07:23:18 -0000      1.3458
@@ -1,3 +1,10 @@
+2007-05-26  Klaus Treichel  <address@hidden>
+
+       * codegen/cg_scope.c: Change the cast in the assignment of data to 
*index
+       from (unsignded int) to (unsigned long) to fix a compiler warning and to
+       avoid information loss on archs where the size of void * is greater than
+       the size of int.
+
 2007-05-25  Klaus Treichel  <address@hidden>
 
        * support/cvt_float.c: Fix a problem with converting UInt64 values 
greater

Index: codegen/cg_scope.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/codegen/cg_scope.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- codegen/cg_scope.c  24 May 2007 13:51:14 -0000      1.20
+++ codegen/cg_scope.c  26 May 2007 07:23:19 -0000      1.21
@@ -979,7 +979,7 @@
        {
                if(prev->rbnode.kind == IL_SCOPE_LOCAL)
                {
-                       *index = (unsigned int) prev->data;
+                       *index = (unsigned long) prev->data;
                        *name = prev->name;
                        return prev;
                }




reply via email to

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