/////////////////////////////////////////////////////////////////////////////
-// Name: automtn.cpp
+// Name: src/msw/ole/automtn.cpp
// Purpose: OLE automation utilities
// Author: Julian Smart
// Modified by:
oleVariant.vt = VT_DATE;
long dosDateTime = date.GetAsDOS();
- short dosDate = (dosDateTime & 0xFFFF0000) >> 16;
- short dosTime = dosDateTime & 0xFFFF;
+ short dosDate = short((dosDateTime & 0xFFFF0000) >> 16);
+ short dosTime = short(dosDateTime & 0xFFFF);
DosDateTimeToVariantTime(dosDate, dosTime, & oleVariant.date);
}
#endif
#endif // wxUSE_OLE && !(defined(__BORLANDC__) && (__BORLANDC__ < 0x520)) && !defined(__CYGWIN10__)
-