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 two compilation errors on i686-w64-mingw32 #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

starius
Copy link
Contributor

@starius starius commented Dec 31, 2024

With these two fixes, I managed to build simplegrep.exe for Windows using i686-w64-mingw32 (cross-compilation from Linux).

Argument len is size_t, not ulong. Fix the following error on i686-w64-mingw32:
compile_v52.go:40:73: cannot use _Ctype_ulong(len(expression)) (value of type
_Ctype_ulong) as type _Ctype_uint in variable declaration
Use unsafe.Slice instead of using a type of array of size 1 << 30.

Fix error on i686-w64-mingw32:
compile.go:407:30: type [1073741824]*_Ctype_char larger than address space
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