Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve warning in deserializeRawMap #692

Merged
merged 6 commits into from
Jan 8, 2025

Conversation

JairusSW
Copy link
Member

@JairusSW JairusSW commented Jan 8, 2025

Description

The function deserializeRawMap had a if (key == null) { } check which AssemblyScript's compiler flags because its comparing a usize to non-usize type. This PR fixes that and changes it to if (changetype<usize>(key) == 0) { } to check the pointer instead.

Discussion (discord): #modus

Checklist

  • Code compiles correctly and linting passes locally
  • For all code changes, an entry added to the CHANGELOG.md file describing and linking to this PR

@JairusSW JairusSW requested a review from a team as a code owner January 8, 2025 01:13
@JairusSW JairusSW enabled auto-merge (squash) January 8, 2025 01:14
@JairusSW JairusSW changed the title Fix warning in DynamicMap fix: resolve warning in deserializeRawMap Jan 8, 2025
@JairusSW JairusSW changed the title fix: resolve warning in deserializeRawMap fix: resolve warning in deserializeRawMap Jan 8, 2025
mattjohnsonpint
mattjohnsonpint previously approved these changes Jan 8, 2025
@JairusSW JairusSW merged commit c1cb469 into main Jan 8, 2025
22 of 36 checks passed
@JairusSW JairusSW deleted the jairus/hyp-2898-warning-on-dynamicmap-usage branch January 8, 2025 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants