Compilation fix

This commit is contained in:
Nekotekina 2014-11-02 04:18:02 +03:00
parent ddbd590bef
commit 31c71b4a48
2 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ namespace sce_libc_func
} }
} }
psv_log_base& sceLibc = []() psv_log_base& sceLibc = []() -> psv_log_base&
{ {
psv_log_base* module = new psv_log_base("sceLibc"); psv_log_base* module = new psv_log_base("sceLibc");
@ -326,5 +326,5 @@ psv_log_base& sceLibc = []()
//REG_FUNC(0x7D35108B, _FSnan); //REG_FUNC(0x7D35108B, _FSnan);
//REG_FUNC(0x48AEEF2A, _LSnan); //REG_FUNC(0x48AEEF2A, _LSnan);
return std::move(*module); return *module;
}(); }();

View File

@ -23,11 +23,11 @@ psv_func* get_psv_func_by_nid(u32 nid)
u32 get_psv_func_index(psv_func* func) u32 get_psv_func_index(psv_func* func)
{ {
u32 res = func - g_psv_func_list.data(); auto res = func - g_psv_func_list.data();
assert(res < g_psv_func_list.size()); assert((size_t)res < g_psv_func_list.size());
return res; return (u32)res;
} }
void execute_psv_func_by_index(ARMv7Thread& CPU, u32 index) void execute_psv_func_by_index(ARMv7Thread& CPU, u32 index)