Add missing variants for short, ushort to JSONNumber() constructor list

master
Harald Wolff 2020-12-12 20:15:29 +01:00
parent 31c17d2986
commit 1c48245b90
1 changed files with 4 additions and 0 deletions

View File

@ -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) { }