From 03de737f0d18526b99b59a1810c7e290b66f4be2 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 6 Jul 2017 11:11:01 -0700 Subject: Fix many warnings-as-errors issues. The code should now compile cleanly with warnings as errors for VS2015 with `W3`. Most of the changes had to do with propagating a real pointer-sized integer type through code that had been using `int`. --- source/core/text-io.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/core/text-io.cpp') diff --git a/source/core/text-io.cpp b/source/core/text-io.cpp index 7815d7422..ec41b8d7d 100644 --- a/source/core/text-io.cpp +++ b/source/core/text-io.cpp @@ -215,7 +215,7 @@ namespace Slang { #ifdef _WIN32 int flag = IS_TEXT_UNICODE_SIGNATURE | IS_TEXT_UNICODE_REVERSE_SIGNATURE | IS_TEXT_UNICODE_STATISTICS | IS_TEXT_UNICODE_ASCII16; - int rs = IsTextUnicode(buffer.Buffer(), buffer.Count(), &flag); + int rs = IsTextUnicode(buffer.Buffer(), (int) buffer.Count(), &flag); if (rs) { if (flag & (IS_TEXT_UNICODE_SIGNATURE | IS_TEXT_UNICODE_STATISTICS)) -- cgit v1.2.3