From d6713c3a9626ed1a572baf596a7a3f44d2c89264 Mon Sep 17 00:00:00 2001 From: Thimo Date: Sun, 8 Nov 2020 14:09:47 +0100 Subject: [PATCH] Fix compiler warnings --- src/Assets/Sprite.bf | 4 ++-- src/Static/Console.bf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Assets/Sprite.bf b/src/Assets/Sprite.bf index e2b61b0..a6bd6e9 100644 --- a/src/Assets/Sprite.bf +++ b/src/Assets/Sprite.bf @@ -560,7 +560,7 @@ namespace Strawberry delete BlendModes; } - private static readonly Blend[] BlendModes = new Blend[] + private static readonly Blend[] BlendModes = new Blend[]( { // 0 - NORMAL new (dest, index, src, opacity) => @@ -596,7 +596,7 @@ namespace Strawberry dest[index + 3] = a; } } - }; + }); [Inline] private static int MUL_UN8(int a, int b) diff --git a/src/Static/Console.bf b/src/Static/Console.bf index 70a888e..08fb0ef 100644 --- a/src/Static/Console.bf +++ b/src/Static/Console.bf @@ -229,7 +229,7 @@ namespace Strawberry { let name = scope String(); type.GetName(name); - let error = Calc.StringArgs("{0} type arguments not supported in commands.", scope Object[] { name }); + let error = Calc.StringArgs("{0} type arguments not supported in commands.", scope Object[]({ name })); Runtime.FatalError(error); }