Skip to content

fix: netstandard2.0-safe finite check in WeatherHour#10

Merged
michaldengusiak merged 1 commit into
sow/2026-Q2from
fix/weatherhour-isfinite-netstandard
May 27, 2026
Merged

fix: netstandard2.0-safe finite check in WeatherHour#10
michaldengusiak merged 1 commit into
sow/2026-Q2from
fix/weatherhour-isfinite-netstandard

Conversation

@michaldengusiak
Copy link
Copy Markdown

@michaldengusiak michaldengusiak commented May 27, 2026

Summary

  • 5f0f0a0d introduced double.IsFinite(...) in SAM.Weather/Classes/WeatherHour.cs, but SAM.Weather targets netstandard2.0 where double.IsFinite does not exist (added in netstandard2.1 / .NET Core 3.0). This breaks the Release build on sow/2026-Q2 and every PR built against it.
  • Replaced with the semantically identical netstandard2.0-safe guard: double.IsNaN(x) || double.IsInfinity(x).

Test plan

  • dotnet build SAM/SAM.Weather/SAM.Weather.csproj -c Release succeeds (netstandard2.0)
  • CI build (Release) + spdx green

🤖 Generated with Claude Code

double.IsFinite is unavailable on netstandard2.0 (SAM.Weather's target),
breaking the Release build. Replace with the equivalent
IsNaN/IsInfinity guard introduced by 5f0f0a0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@michaldengusiak michaldengusiak merged commit bd3a72c into sow/2026-Q2 May 27, 2026
2 checks passed
@michaldengusiak michaldengusiak deleted the fix/weatherhour-isfinite-netstandard branch May 27, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants