Skip to content

Commit

Permalink
c-curl : completed PR OpenAPITools#17179 - int* param misinterpreted …
Browse files Browse the repository at this point in the history
…by type-unsafe macro
  • Loading branch information
Jens-Olaf Hemprich committed Sep 6, 2024
1 parent d4cf35e commit 0b68fd8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

#define MAX_NUMBER_LENGTH 16
#define MAX_BUFFER_LENGTH 4096
#define intToStr(dst, src) snprintf(dst, 256, "%ld", (long int) (src) );
#define intToStr(dst, src) \
const int value = *src; \
snprintf(dst, 256, "%d", value);

{{#operations}}
{{#operation}}
Expand Down

0 comments on commit 0b68fd8

Please sign in to comment.