Skip to content

feat(morecolors): SM 1.13 compatibility - #23

Open
Rushaway wants to merge 1 commit into
Bara:masterfrom
srcdslab:Rushaway-patch-1
Open

feat(morecolors): SM 1.13 compatibility#23
Rushaway wants to merge 1 commit into
Bara:masterfrom
srcdslab:Rushaway-patch-1

Conversation

@Rushaway

@Rushaway Rushaway commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

SourcePawn 1.13 introduced native int64 support.
As a side effect, integer literals that exceed the 32-bit signed range (INT_MAX = 2147483647) are now promoted to int64.

The FNV-1a offset basis 2166136261 (0x811C9DC5) falls into this category, causing:

error 450: no viable conversion from 'int64' to 'int'

Replace the decimal literal with its hexadecimal equivalent 0x811C9DC5.
Hex literals are interpreted as raw 32-bit cells by the compiler, bypassing the promotion logic, while remaining bit-for-bit identical at runtime.

You can see the error here: https://github.com/Bara/Multi-Colors/actions/runs/27945429432/job/82688810583?pr=22

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