commit | 90e69c95ef73e969f37e914cca7e82a3544da4d4 | [log] [tgz] |
---|---|---|
author | Alex Alabuzhev <alabuzhev@gmail.com> | Thu Nov 09 00:32:19 2017 +0000 |
committer | Alex Alabuzhev <alabuzhev@gmail.com> | Thu Nov 09 00:33:05 2017 +0000 |
tree | 084871aeb0d782fbd354bbed427f32e4eab39938 | |
parent | 4155ac0c7345c760be0b79d44040691a5c4fff06 [diff] [blame] |
Suppress MSVC warning C4267: conversion from 'size_t' to 'int', possible loss of data
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index d147ffe..04cf697 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -2418,7 +2418,7 @@ fwrite ( data , sizeof(char), size, _fp); } else { - char* p = _buffer.PushArr( size ) - 1; // back up over the null terminator. + char* p = _buffer.PushArr( static_cast<int>(size) ) - 1; // back up over the null terminator. memcpy( p, data, size ); p[size] = 0; }