提交 968f9c03 编写于 作者: P Palana

use %u for size_t on microsoft compilers

上级 0f484c46
......@@ -57,10 +57,14 @@ typedef long off_t;
typedef int64_t off64_t;
#endif /* __off_t_defined */
#define SIZE_T_FORMAT "%u"
#else
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
#define SIZE_T_FORMAT "%zu"
#endif /* _MSC_VER */
......@@ -31,7 +31,7 @@ IMPLEMENT_APP(OBSApp);
OBSAppBase::~OBSAppBase()
{
blog(LOG_INFO, "Number of memory leaks: %zu", bnum_allocs());
blog(LOG_INFO, "Number of memory leaks: " SIZE_T_FORMAT, bnum_allocs());
}
static void do_log(enum log_type type, const char *msg, va_list args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册