Skip to content

Commit

Permalink
fix compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Jan 23, 2020
1 parent 5190393 commit d51c02d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ds5/ds5-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ namespace librealsense

sector_count += first_sector;

for (size_t sector_index = first_sector; sector_index < sector_count; sector_index++)
for (int sector_index = first_sector; sector_index < sector_count; sector_index++)
{
command cmdFES(ds::FES);
cmdFES.require_response = false;
Expand Down Expand Up @@ -222,7 +222,7 @@ namespace librealsense
update_progress_callback_ptr callback, float continue_from, float ratio)
{
auto first_table_offset = fs.tables.front().offset;
float total_size = fs.app_size + tables_size;
float total_size = float(fs.app_size + tables_size);

float app_ratio = fs.app_size / total_size * ratio;
float tables_ratio = tables_size / total_size * ratio;
Expand All @@ -240,7 +240,7 @@ namespace librealsense
// update read-write section
auto first_table_offset = flash_image_info.read_write_section.tables.front().offset;
auto tables_size = flash_image_info.header.read_write_start_address + flash_image_info.header.read_write_size - first_table_offset;
update_section(hwm, merged_image, flash_image_info.read_write_section, tables_size, callback, 0, update_mode == RS2_UNSIGNED_UPDATE_MODE_READ_ONLY ? 0.5 : 1.0);
update_section(hwm, merged_image, flash_image_info.read_write_section, tables_size, callback, 0, update_mode == RS2_UNSIGNED_UPDATE_MODE_READ_ONLY ? 0.5f : 1.0f);

if (update_mode == RS2_UNSIGNED_UPDATE_MODE_READ_ONLY)
{
Expand Down
2 changes: 1 addition & 1 deletion src/winusb/enumerator-winusb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace librealsense
cr = CM_Get_Device_Interface_List((LPGUID)&guid, NULL, device_list.data(), length,
CM_GET_DEVICE_INTERFACE_LIST_PRESENT);

int offset = 0;
size_t offset = 0;
while (offset < length)
{
auto str = std::wstring((device_list.data() + offset));
Expand Down

0 comments on commit d51c02d

Please sign in to comment.