From 1c48245b90f09ba2b7d5b0d96c9516f2d2376189 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Sat, 12 Dec 2020 20:15:29 +0100 Subject: [PATCH] Add missing variants for short, ushort to JSONNumber() constructor list --- ln.json/JSONNumber.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ln.json/JSONNumber.cs b/ln.json/JSONNumber.cs index 2a0e9b1..d0024e5 100644 --- a/ln.json/JSONNumber.cs +++ b/ln.json/JSONNumber.cs @@ -20,6 +20,10 @@ namespace ln.json return (double)decValue; } + public JSONNumber(short i) + : this((long)i) { } + public JSONNumber(ushort i) + : this((long)i) { } public JSONNumber(int i) : this((long)i) { }