Fixing ptrdiff_t compile error
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user