Skip to content

Commit

Permalink
Release v0.4.10.18
Browse files Browse the repository at this point in the history
Fixed incorrect reading of `byte` and `short` in `JSON`
  • Loading branch information
korenkonder committed Jul 4, 2023
1 parent 00d25ff commit 3c13856
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions KKdMainLib/IO/JSON.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ object ReadFloat(ref ReadBuffer buf, ref int c)
object obj;
unchecked
{
if (val >= 0x00 && val < 0xFF)
if (val >= 0x00 && val <= 0xFF)
obj = (byte)val;
else if (val >= (sbyte)0x80 && val <= (sbyte)0x7F)
obj = (sbyte)val;
else if (val >= 0x0000 && val < 0xFFFF)
else if (val >= 0x0000 && val <= 0xFFFF)
obj = (ushort)val;
else if (val >= (short)0x8000 && val <= (short)0x7FFF)
obj = (short)val;
Expand Down
4 changes: 2 additions & 2 deletions KKdMainLib/KKdMainLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<Configuration></Configuration>
<Copyright>korenkonder (C) 2018-2023</Copyright>
<Description>A simple library for working with Project Diva AC/DT/F/AFT/F2/X/XHD/FT/VRFL/M39 files</Description>
<FileVersion>0.4.10.17</FileVersion>
<FileVersion>0.4.10.18</FileVersion>
<PackageId>KKdMainLib</PackageId>
<Product>KKdMainLib</Product>
<TargetFramework>net461</TargetFramework>
<Title>KKdMainLib</Title>
<Version>0.4.10.17</Version>
<Version>0.4.10.18</Version>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
4 changes: 2 additions & 2 deletions PD_Tool/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("7B5D5A3A-A6F8-4813-C97D-ACFC98F7397E")]
[assembly: AssemblyVersion("0.4.10.17")]
[assembly: AssemblyFileVersion("0.4.10.17")]
[assembly: AssemblyVersion("0.4.10.18")]
[assembly: AssemblyFileVersion("0.4.10.18")]

0 comments on commit 3c13856

Please sign in to comment.