We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
typedef int32_t bufsize_t;
typedef size_t bufsize_t;
e.g.
commonmark.c:146:21: warning: implicit conversion loses integer precision: 'bufsize_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] realurllen = url->len; ~ ~~~~~^~~ commonmark.c:243:16: warning: implicit conversion loses integer precision: 'bufsize_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] for (i = marker_width; i--;) { ~ ^~~~~~~~~~~~ compiling houdini_href_e.c compiling houdini_html_e.c blocks.c:298:29: warning: implicit conversion loses integer precision: 'bufsize_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] b->end_column = parser->last_line_length; ~ ~~~~~~~~^~~~~~~~~~~~~~~~ blocks.c:303:37: warning: implicit conversion loses integer precision: 'bufsize_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] b->end_column = parser->curline.size; ~ ~~~~~~~~~~~~~~~~^~~~ blocks.c:310:29: warning: implicit conversion loses integer precision: 'bufsize_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] b->end_column = parser->last_line_length; ~ ~~~~~~~~^~~~~~~~~~~~~~~~ blocks.c:828:25: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32] return (i - offset) + 1; ~~~~~~ ~~~~~~~~~~~~~^~~ blocks.c:863:50: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32] parser->indent = parser->first_nonspace_column - parser->column; ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ blocks.c:886:32: warning: implicit conversion loses integer precision: 'bufsize_t' (aka 'long long') to 'int' [-Wshorten-64-to-32] chars_to_advance = MIN(count, chars_to_tab); ~ ^~~~~ blocks.c:39:30: note: expanded from macro 'MIN' #define MIN(x, y) ((x < y) ? x : y)
and a lot more.
It seems odd to use int as a buffer size (limited to around 2GB of input).
int
Can we fix this?
For a little more context, check #302.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
e.g.
and a lot more.
It seems odd to use
int
as a buffer size (limited to around 2GB of input).Can we fix this?
For a little more context, check #302.
The text was updated successfully, but these errors were encountered: