[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.5,1.6
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnet/engine lib_enum.c,1.5,1.6 |
Date: |
Sat, 21 Jun 2003 01:36:37 -0400 |
Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv1640/engine
Modified Files:
lib_enum.c
Log Message:
Fixed bug where flag enums don't return correct string format if the
enum value matches exactly one value.
Index: lib_enum.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_enum.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** lib_enum.c 21 Feb 2003 03:24:30 -0000 1.5
--- lib_enum.c 21 Jun 2003 05:36:35 -0000 1.6
***************
*** 583,587 ****
enumValue = GetRawEnumValue(thread, value) & mask;
leftOver = enumValue;
!
/* Find all fields that overlap with the incoming value */
field = 0;
--- 583,587 ----
enumValue = GetRawEnumValue(thread, value) & mask;
leftOver = enumValue;
!
/* Find all fields that overlap with the incoming value */
field = 0;
***************
*** 590,599 ****
/* Check for the easy case of an exact match */
if(fieldValue == enumValue)
! {
if(maxMatches > 4)
{
ILFree(matches);
}
! return ILStringCreate(thread, ILField_Name(classInfo));
}
--- 590,599 ----
/* Check for the easy case of an exact match */
if(fieldValue == enumValue)
! {
if(maxMatches > 4)
{
ILFree(matches);
}
! return ILStringCreate(thread, ILField_Name(field));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnet/engine lib_enum.c,1.5,1.6,
Rhys Weatherley <address@hidden> <=