Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Apply casting to do away the const explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Nov 24, 2023
1 parent dcb57b2 commit e0fd51f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clib/clib.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ static inline void MY_xmlFree(void *p) {
// Macro wrapper function. cgo cannot detect function-like macros,
// so this is how we avoid it
static inline xmlError* MY_xmlLastError() {
return xmlGetLastError();
return (xmlError*) xmlGetLastError();
}
// Macro wrapper function. cgo cannot detect function-like macros,
// so this is how we avoid it
static inline xmlError* MY_xmlCtxtLastError(void *ctx) {
return xmlCtxtGetLastError(ctx);
return (xmlError*) xmlCtxtGetLastError(ctx);
}
// Change xmlIndentTreeOutput global, return old value, so caller can
Expand Down

0 comments on commit e0fd51f

Please sign in to comment.