Skip to content

Commit

Permalink
core, bugfix: fix compile warning on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
xicilion committed Sep 23, 2017
1 parent 4ce374f commit 8cc0308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fibjs/include/utils.h
Expand Up @@ -548,7 +548,7 @@ inline result_t GetArgumentValue(v8::Local<v8::Value> v, exlib::string& n, bool
else else
return CALL_E_TYPEMISMATCH; return CALL_E_TYPEMISMATCH;


size_t bufUtf8Len = str->Utf8Length(); int32_t bufUtf8Len = str->Utf8Length();
n.resize(bufUtf8Len); n.resize(bufUtf8Len);
int flags = v8::String::HINT_MANY_WRITES_EXPECTED | v8::String::NO_NULL_TERMINATION; int flags = v8::String::HINT_MANY_WRITES_EXPECTED | v8::String::NO_NULL_TERMINATION;
str->WriteUtf8(n.c_buffer(), bufUtf8Len, NULL, flags); str->WriteUtf8(n.c_buffer(), bufUtf8Len, NULL, flags);
Expand Down

0 comments on commit 8cc0308

Please sign in to comment.