diff --git a/lol-core b/lol-core index 93ad6b7a..dead6fe3 160000 --- a/lol-core +++ b/lol-core @@ -1 +1 @@ -Subproject commit 93ad6b7ab16307cfc7aded27a6260746511ec899 +Subproject commit dead6fe3bfef4dc13f3ac73e135f2e955748abc7 diff --git a/src/base/log.cpp b/src/base/log.cpp index c3380b14..4aea91d7 100644 --- a/src/base/log.cpp +++ b/src/base/log.cpp @@ -110,18 +110,18 @@ void msg::helper(message_type type, char const *fmt, va_list ap) }; # if defined _WIN32 - std::string buf = std::string(prefix[(int)type]) + ": " + vformat(fmt, ap); + std::string buf = std::string(prefix[int(type)]) + ": " + vformat(fmt, ap); std::vector widechar; widechar.resize(buf.length() + 1); - MultiByteToWideChar(CP_UTF8, 0, buf.c_str(), (int)buf.length() + 1, widechar.data(), widechar.size()); + MultiByteToWideChar(CP_UTF8, 0, buf.c_str(), int(buf.length()) + 1, widechar.data(), int(widechar.size())); OutputDebugStringW(widechar.data()); # elif defined __EMSCRIPTEN__ - fprintf(stdout, "%s: ", prefix[(int)type]); + fprintf(stdout, "%s: ", prefix[int(type)]); vfprintf(stdout, fmt, ap); fflush(stdout); # else - fprintf(stderr, "%s: ", prefix[(int)type]); + fprintf(stderr, "%s: ", prefix[int(type)]); vfprintf(stderr, fmt, ap); # endif #endif diff --git a/src/scene.cpp b/src/scene.cpp index 91291646..fccc1c25 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -14,6 +14,8 @@ #include #include +#include +#include #include #if defined(_WIN32) @@ -261,7 +263,7 @@ void Scene::Reset() { for (size_t idx = 0; idx < m_prim_renderers[key].size(); ++idx) if (m_prim_renderers[key][idx]->m_fire_and_forget) - ReleasePrimitiveRenderer(idx--, key); + ReleasePrimitiveRenderer(int(idx--), key); } m_tile_api.m_bufs.clear(); @@ -675,7 +677,7 @@ void Scene::render_tiles() // XXX: rename to Blit() m_tile_api.m_vdecl->SetStream(vb2, attr_tex); /* Draw arrays */ - m_tile_api.m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, (n - i) * 6); + m_tile_api.m_vdecl->DrawElements(MeshPrimitive::Triangles, 0, int(n - i) * 6); m_tile_api.m_vdecl->Unbind(); tiles[i].m_tileset->Unbind(); }