From ac23ec83596ff168c672dfb383f0674ee492882d Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 9 Apr 2016 18:15:47 -0700 Subject: [PATCH] libobs/util: Fix warning (data type size mismatch) Fixes warning on Visual Studio 2013: 'initializing' : conversion from 'size_t' to 'int', possible loss of data --- libobs/util/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/util/platform.c b/libobs/util/platform.c index 8ecfa301b..af031e60b 100644 --- a/libobs/util/platform.c +++ b/libobs/util/platform.c @@ -90,7 +90,7 @@ int os_stat(const char *file, struct stat *st) { if (file) { wchar_t w_file[512]; - int size = os_utf8_to_wcs(file, 0, w_file, sizeof(w_file)); + size_t size = os_utf8_to_wcs(file, 0, w_file, sizeof(w_file)); if (size > 0) { struct _stat st_w32; int ret = _wstat(w_file, &st_w32);