Permalink
Browse files

core, bugfix: fix compile warning on windows.

  • Loading branch information...
xicilion committed Sep 23, 2017
1 parent 4ce374f commit 8cc030841e985c220d75e5f1fdbff8673c6647b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 fibjs/include/utils.h
View
@@ -548,7 +548,7 @@ inline result_t GetArgumentValue(v8::Local<v8::Value> v, exlib::string& n, bool
else
return CALL_E_TYPEMISMATCH;
size_t bufUtf8Len = str->Utf8Length();
int32_t bufUtf8Len = str->Utf8Length();
n.resize(bufUtf8Len);
int flags = v8::String::HINT_MANY_WRITES_EXPECTED | v8::String::NO_NULL_TERMINATION;
str->WriteUtf8(n.c_buffer(), bufUtf8Len, NULL, flags);

0 comments on commit 8cc0308

Please sign in to comment.