Skip to content

MSVC: Fix warning C4133 on x64: "function": Incompatible types - from "unsigned long *" to "size_t *"#5317

Merged
ethomson merged 1 commit intolibgit2:masterfrom
csware:size_t
Dec 4, 2019
Merged

MSVC: Fix warning C4133 on x64: "function": Incompatible types - from "unsigned long *" to "size_t *"#5317
ethomson merged 1 commit intolibgit2:masterfrom
csware:size_t

Conversation

@csware
Copy link
Copy Markdown
Contributor

@csware csware commented Dec 3, 2019

No description provided.

Comment thread src/regexp.c Outdated
{
unsigned char errmsg[1024];
unsigned long erroff;
size_t erroff;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. This should maybe be PCRE2_SIZE per the PCRE2 docs themselves. Will that always be size_t?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's hard-coded in pcre2.h, but I think PCRE2_SIZE is better...

… "unsigned long *" to "size_t *"

Signed-off-by: Sven Strickroth <email@cs-ware.de>
@ethomson
Copy link
Copy Markdown
Member

ethomson commented Dec 4, 2019

Awesome. Thanks for the fix!

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.

2 participants