Skip to content

Use typed integer literal so Linux builds under strict overload resolution#8

Open
FeliceMente wants to merge 1 commit into
rux-lang:devfrom
FeliceMente:fix/strict-overload-literals
Open

Use typed integer literal so Linux builds under strict overload resolution#8
FeliceMente wants to merge 1 commit into
rux-lang:devfrom
FeliceMente:fix/strict-overload-literals

Conversation

@FeliceMente

Copy link
Copy Markdown

After rux-lang/Rux#136, the overload resolver enforces argument assignability, so an untyped int literal passed to an int32 parameter no longer resolves. Zero calls Fill(ptr, size, 0) where Fill(..., value: int32), which now fails to compile.

Adds the type suffix: Fill(ptr, size, 0i32). No logic change.

This is the Linux counterpart of the same fix in Std (rux-lang/Std#45 / rux-lang/Std#43). The BSD and Illumos packages very likely have the identical Zero -> Fill(..., 0) site and need the same one-line change.

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.

1 participant