[Github-comments] [geany/geany-plugins] [geanylua] geany.scintilla() does not work with SCI_SETLEXER (#646)

elextr notifications at xxxxx
Tue Nov 21 07:39:16 UTC 2017


No its not the `gchar*` thats the problem, its that argc is `int` which is signed, but `sizeof` returns `size_t` which is unsigned.

Thats why its a stupid warning (or at least stupid to enable by default) because many system interfaces use `int` as a counter (like `argc`) and everybody knows they are never negative ... except the compiler, so it makes this stupid error.

just `(guint)(argc)` will probably work.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/646#issuecomment-345942224
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20171121/c6b56223/attachment.html>


More information about the Github-comments mailing list