Skip to content

Commit c4bfcfc

Browse files
authored
Merge pull request vpenades#272 from MeltyPlayer/isFinite
Fixed minor bug where isFinite would not be used if the version were NET core.
2 parents ffd6ad3 + bff414d commit c4bfcfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/_Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ internal static int WordPadded(this int length)
4646

4747
internal static bool _IsFinite(this float value)
4848
{
49-
#if NETSTANDARD2_1_OR_GREATER
49+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
5050
return float.IsFinite(value);
5151
#else
5252
return !(float.IsNaN(value) || float.IsInfinity(value));

0 commit comments

Comments
 (0)