-
Notifications
You must be signed in to change notification settings - Fork 35
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
nico.nim(2227, 19) Error: type mismatch: got '(int, int, int32, int32)' for '(int(x), int(y), src.w * scale, src.h * scale)' but expected 'Rect = tuple[x: int, y: int, w: int, h: int]'
#121
Comments
nim 1.6.14 + rund = works |
Have the same problem with Nim2.0 |
Fix it let dst: Rect = (x.int, y.int, src.w * scale.int, src.h * scale.int) |
Can build now with webr on Ubuntu, but I cannot run it in the browser (this is the basic example): registerOrRemoveHandler: the target element for event handler registration does not exist, when processing the following event handler and then: Aborted(Runtime error: The application has corrupted its heap memory area (address zero)!) |
@HVukman Sorry I haven't use nico in linux so don't know . But you can test it.
nim c -d:emscripten -o:exampleApp.html src/main.nim
emrun exampleApp.html |
^ This works under WIndows, thanks. |
The text was updated successfully, but these errors were encountered: