+2002-10-16 Nick Drochak <ndrochak@gol.com>
+
+ * Enum.cs (Parse): Then fix the code so that it works too.
+
2002-10-15 Nick Drochak <ndrochak@gol.com>
* Enum.cs (Parse): Use unsigned casts to avoid compiler warnings.
case TypeCode.SByte:
// use the unsigned version in the cast to avoid
// compiler warning
- retVal |= (long)((byte)info.values.GetValue (i));
+ retVal |= (long)((byte)(SByte)info.values.GetValue (i));
break;
case TypeCode.Int16:
// use the unsigned version in the cast to avoid
// compiler warning
- retVal |= (long)((ushort)info.values.GetValue (i));
+ retVal |= (long)((ushort)(short)info.values.GetValue (i));
break;
case TypeCode.Int32:
// use the unsigned version in the cast to avoid
// compiler warning
- retVal |= (long)((uint)info.values.GetValue (i));
+ retVal |= (long)((uint)(int)info.values.GetValue (i));
break;
case TypeCode.Int64:
retVal |= (long)info.values.GetValue (i);