Fix a C-style cast to a const_cast<>. Followup to bug 837957, r=sparky

--HG--
extra : rebase_source : f4c806060a89a424544ce5704b19ed36ef968e88
This commit is contained in:
Jeff Walden 2013-03-19 16:34:37 -07:00
parent d5eaaf6880
commit c2f9e7bd7e

View File

@ -1856,7 +1856,7 @@ NewUDateFormat(JSContext *cx, HandleObject dateTimeFormat)
// ECMAScript requires the Gregorian calendar to be used from the beginning
// of ECMAScript time.
UCalendar *cal = (UCalendar *) udat_getCalendar(df);
UCalendar *cal = const_cast<UCalendar*>(udat_getCalendar(df));
ucal_setGregorianChange(cal, StartOfTime, &status);
// An error here means the calendar is not Gregorian, so we don't care.