Fixed Type casting error & Added ListView example#268
Merged
rockorager merged 4 commits intorockorager:mainfrom Dec 23, 2025
Merged
Fixed Type casting error & Added ListView example#268rockorager merged 4 commits intorockorager:mainfrom
rockorager merged 4 commits intorockorager:mainfrom
Conversation
rockorager
approved these changes
Nov 10, 2025
Owner
rockorager
left a comment
There was a problem hiding this comment.
Looks good, just a few files to remove that I don't want to have in the repo (direnv and nix stuff)
Contributor
Author
|
Hey @rockorager, I have removed the files |
Contributor
Author
|
Hello @rockorager,
Waiting for your approval to merge these changes. |
Owner
|
Good to go, can you rebase on main and then I'll merge? |
This reverts commit 9fa4091.
Signed-off-by: vg006 <devvg006@gmail.com>
Contributor
Author
|
Hello @rockorager |
Contributor
Author
|
Hello @rockorager |
Owner
|
Sorry about that, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem:
I noticed this issue, when building my project with the TextView Widget that contains a line, that attempts to perform type coercion between error union types.
Actually the problem arises, when Zig compiler sees a return type of
error!u3from thestd.unicode.utf8CodepointSequenceLength(), instead oferror!usizeZig allows type coercion between integer types like
u3tousize, but doesn't allow coercion between error unions of typeerror!u3anderror!usize. Even in the presence of thecatchexpression, it expects the payload of typeerror!usize.Error Message:
Solution:
u3tousizeusing the builtin@as()function.libvaxislibrary.