Skip to content

Fixes to better support 32-bit builds - #5060

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
Drvi:td-32bit-fixes
Sep 7, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
Drvi:td-32bit-fixes

Conversation

@Drvi

@Drvi Drvi commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

What I found that looked 64-bit specific. With this patch, I was able to precompile MTK on win32 CI (branch with a bunch of other fixes to other packages).

@Drvi
Drvi marked this pull request as ready for review September 3, 2026 17:52
function safe_isinteger(@nospecialize(x::Number))
if x isa Int64
return true
return typemin(Int) <= x <= typemax(Int)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this one for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This safe_isinteger effectively asserts that x fits into Int which might be smaller than Int64

@ChrisRackauckas
ChrisRackauckas merged commit 027fd26 into SciML:master Sep 7, 2026
102 of 109 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 10, 2026
- Fixes to better support 32-bit builds (#5060)
- Add 32-bit InterfaceI CI lane via test_groups.toml (#5092)
- Mark `InitializationMetadata` inactive for Enzyme (#5094)
- Require Symbolics 7.39.1 (32-bit hash fix) (#5096)
- Qualify unbound_inputs @ref in the interactive simulation tutorial (#5099)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
ChrisRackauckas added a commit that referenced this pull request Sep 10, 2026
- Keep the system tspan through SDE structural simplification (#5091)
- Fixes to better support 32-bit builds (#5060)
- Add 32-bit InterfaceI CI lane via test_groups.toml (#5092)
- Mark `InitializationMetadata` inactive for Enzyme (#5094)
- Require Symbolics 7.39.1 (32-bit hash fix) (#5096)
- Qualify unbound_inputs @ref in the interactive simulation tutorial (#5099)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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