From abf39dafb63b0b1dfade6619d9f1eb30d5798222 Mon Sep 17 00:00:00 2001 From: jwfx Date: Wed, 19 Sep 2018 17:59:33 +0200 Subject: [PATCH] Fix float array serialization --- src/Types/Encoder.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Types/Encoder.cs b/src/Types/Encoder.cs index a8bda652..6e0c852f 100644 --- a/src/Types/Encoder.cs +++ b/src/Types/Encoder.cs @@ -156,6 +156,7 @@ internal static void Initialize() // 10: float new Serializer() { + Type = typeof(float), Encoder = delegate(ByteBuffer b, object o, bool s) { WriteFloat(b, (float)o); }, Decoder = delegate(ByteBuffer b, byte c) { return ReadFloat(b, c); } },