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 compilation warnings in the LPEG submodule #147

Open
rdw-software opened this issue Dec 11, 2022 · 0 comments
Open

Fix compilation warnings in the LPEG submodule #147

rdw-software opened this issue Dec 11, 2022 · 0 comments

Comments

@rdw-software
Copy link
Member

May only happen on Windows? Or perhaps I missed it when working inside WSL...

[5/52] Compiling deps/lpeg/lptree.c ...
deps/lpeg/lptree.c: In function 'addtoktable':
deps/lpeg/lptree.c:166:11: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  166 |     if (n >= USHRT_MAX)
      |           ^~
deps/lpeg/lptree.c: In function 'concattable':
deps/lpeg/lptree.c:198:15: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  198 |   if (n1 + n2 > USHRT_MAX)
      |               ^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant