Fix string indexing type warnings and update type conversions #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixed type conversion warnings throughout the codebase by updating string indexing operations from
InttoUInt16return types. This change addresses compatibility issues with the latest MoonBit type system.Changes Made
Why These Changes
The MoonBit language updated its string indexing behavior where
string[i]now returnsUInt16instead ofInt. This required explicit type conversions to eliminate compiler warnings while maintaining existing functionality.Implementation Details
UInt16type conversions where string indexing occursThe changes ensure
moon checkpasses without warnings while maintaining the package's core CSV parsing capabilities.