Skip to content

Commit

Permalink
gltfpack: Fix MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zeux committed Nov 27, 2019
1 parent 890e378 commit ebd19bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/basistoktx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ std::string basisToKtx(const std::string& basis, bool srgb)
// supercompression global data
ktxBasisGlobalHeader sgd_header = {};
sgd_header.globalFlags = basis_header.m_flags;
sgd_header.endpointCount = basis_header.m_total_endpoints;
sgd_header.selectorCount = basis_header.m_total_selectors;
sgd_header.endpointCount = uint16_t(basis_header.m_total_endpoints);
sgd_header.selectorCount = uint16_t(basis_header.m_total_selectors);
sgd_header.endpointsByteLength = basis_header.m_endpoint_cb_file_size;
sgd_header.selectorsByteLength = basis_header.m_selector_cb_file_size;
sgd_header.tablesByteLength = basis_header.m_tables_file_size;
Expand Down
2 changes: 1 addition & 1 deletion tools/gltfpack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,7 @@ std::string inferMimeType(const char* path)

std::string extl = ext + 1;
for (size_t i = 0; i < extl.length(); ++i)
extl[i] = tolower(extl[i]);
extl[i] = char(tolower(extl[i]));

if (extl == "jpg")
return "image/jpeg";
Expand Down

0 comments on commit ebd19bb

Please sign in to comment.