Skip to content

Commit 3dfcd70

Browse files
Fix warning C4244 in MSVC (#155)
1 parent a70a0ab commit 3dfcd70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trantor/utils/Logger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class TRANTOR_EXPORT Logger : public NonCopyable
134134
protected:
135135
static void defaultOutputFunction(const char *msg, const uint64_t len)
136136
{
137-
fwrite(msg, 1, len, stdout);
137+
fwrite(msg, 1, static_cast<size_t>(len), stdout);
138138
}
139139
static void defaultFlushFunction()
140140
{

0 commit comments

Comments
 (0)