From 946397cc8cde5481cc03d83ab588dfb87d5dd10e Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 18 Jan 2014 00:13:03 -0800 Subject: [PATCH] Fixing warnings. --- src/xenia/kernel/xboxkrnl_strings.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/kernel/xboxkrnl_strings.cc b/src/xenia/kernel/xboxkrnl_strings.cc index bbc3e3995..6837caae9 100644 --- a/src/xenia/kernel/xboxkrnl_strings.cc +++ b/src/xenia/kernel/xboxkrnl_strings.cc @@ -203,7 +203,7 @@ SHIM_CALL _vsnprintf_shim( XEASSERT(arg_size == 4); if (arg_extras == 0) { uint32_t value = (uint32_t)SHIM_MEM_64(arg_ptr + (arg_index * 8)); // TODO: check if this is correct... - SHIM_SET_MEM_32(value, (b - buffer) / sizeof(char)); + SHIM_SET_MEM_32(value, (uint32_t)((b - buffer) / sizeof(char))); arg_index++; } else { @@ -429,7 +429,7 @@ SHIM_CALL _vswprintf_shim( XEASSERT(arg_size == 4); if (arg_extras == 0) { uint32_t value = (uint32_t)SHIM_MEM_64(arg_ptr + (arg_index * 8)); // TODO: check if this is correct... - SHIM_SET_MEM_32(value, (b - buffer) / sizeof(wchar_t)); + SHIM_SET_MEM_32(value, (uint32_t)((b - buffer) / sizeof(wchar_t))); arg_index++; } else {