fix for build warning - comparison between signed and unsigned expressions
authorhs321.lee <hs321.lee@samsung.com>
Mon, 10 Jun 2013 06:00:58 +0000 (15:00 +0900)
committerhs321.lee <hs321.lee@samsung.com>
Mon, 10 Jun 2013 06:03:54 +0000 (15:03 +0900)
Change-Id: I2adaacd91bb2dc033788dd4fe3aaae8af78a0ed1
Signed-off-by: hs321.lee <hs321.lee@samsung.com>
src/FScl_CalendarbookImpl.cpp

index ce67c7c..939c226 100644 (file)
@@ -2161,12 +2161,12 @@ _CalendarbookImpl::GetEventInstancesOfCategoryN(const calendar_time_s& startTime
                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)
                        {
@@ -2264,12 +2264,12 @@ _CalendarbookImpl::GetEventInstancesOfCategoryN(const calendar_time_s& startTime
                        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)
                                {