calendar_record_h tmpRecordHandle = null;
calendar_list_get_current_record_p(allDayEventInstanceListHandle, &tmpRecordHandle);
- int tmpCategory = EVENT_CATEGORY_ALL;
+ int tmpCategory = (int) EVENT_CATEGORY_ALL;
int eventId = -1;
calendar_record_get_int(tmpRecordHandle, _calendar_instance_allday_calendar_book.event_id, &eventId);
pEventCategoryMap->GetValue(eventId, tmpCategory);
- if ((unsigned long) tmpCategory == category)
+ if (tmpCategory == (int) category)
{
if (candidateCount >= startIndex)
{
calendar_record_h tmpRecordHandle = null;
calendar_list_get_current_record_p(nonAllDayEventInstanceListHandle, &tmpRecordHandle);
- int tmpCategory = EVENT_CATEGORY_ALL;
+ int tmpCategory = (int) EVENT_CATEGORY_ALL;
int eventId = -1;
calendar_record_get_int(tmpRecordHandle, _calendar_instance_normal_calendar_book.event_id, &eventId);
pEventCategoryMap->GetValue(eventId, tmpCategory);
- if ((unsigned long) tmpCategory == category)
+ if (tmpCategory == (int) category)
{
if (candidateCount >= startIndex)
{