Merge pull request #400 from ryochack/fix_fbuffer_warning

Fixed an incompatible type warning
This commit is contained in:
Takatoshi Kondo 2016-01-15 12:53:15 +09:00
commit 356fbcf187

View File

@ -23,7 +23,7 @@ extern "C" {
* @{
*/
static inline int msgpack_fbuffer_write(void* data, const char* buf, unsigned int len)
static inline int msgpack_fbuffer_write(void* data, const char* buf, size_t len)
{
return (1 == fwrite(buf, len, 1, (FILE *)data)) ? 0 : -1;
}