Bug in XlObjectArray12MarshalerImpl

Jul 13, 2012 at 9:58 AM

Hello,

In XlCustomMarshal12.cs around line 1286 a cast is wrong:

 

					else if (obj is ulong)
					{
						pOper->numValue = (double)((long)obj);
						pOper->xlType = XlType12.XlTypeNumber;
					}

I think this should be:

					else if (obj is ulong)
					{
						pOper->numValue = (double)((ulong)obj);
						pOper->xlType = XlType12.XlTypeNumber;
					}

Thanks for ExcelDna. It is a very use piece of software!

 

Arno de Vries

Coordinator
Jul 13, 2012 at 9:24 PM

Thanks Arno - this will be fixed in the next check-in.

-Govert