Fixing ptrdiff_t compile error

This commit is contained in:
Alexander Bock
2015-05-23 22:15:23 +02:00
parent 49e82e2e00
commit 0aab63eb20

View File

@@ -24,6 +24,7 @@
#include <cstring> #include <cstring>
#include <cassert> #include <cassert>
#include <cmath> #include <cmath>
#include <cstddef>
#include <string> #include <string>
#include <vector> #include <vector>
@@ -589,7 +590,7 @@ std::string LoadMtl(std::map<std::string, int> &material_map,
_space = strchr(token, '\t'); _space = strchr(token, '\t');
} }
if (_space) { if (_space) {
ptrdiff_t len = _space - token; std::ptrdiff_t len = _space - token;
std::string key(token, len); std::string key(token, len);
std::string value = _space + 1; std::string value = _space + 1;
material.unknown_parameter.insert( material.unknown_parameter.insert(