Skip to content

Commit

Permalink
#124 fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Nov 30, 2021
1 parent ae1b89f commit e5f5b80
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -26007,7 +26007,7 @@ int json_typeinfo_ser_type_ops(
return -1;
}

int ecs_type_info_to_buf(
int ecs_type_info_to_json_buf(
const ecs_world_t *world,
ecs_entity_t type,
ecs_strbuf_t *buf)
Expand Down Expand Up @@ -26041,7 +26041,7 @@ char* ecs_type_info_to_json(
{
ecs_strbuf_t str = ECS_STRBUF_INIT;

if (ecs_type_info_to_buf(world, type, &str) != 0) {
if (ecs_type_info_to_json_buf(world, type, &str) != 0) {
ecs_strbuf_reset(&str);
return NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion flecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -7874,7 +7874,7 @@ char* ecs_type_info_to_json(
* @return Zero if success, non-zero if failed.
*/
FLECS_API
char* ecs_type_info_to_json_buf(
int ecs_type_info_to_json_buf(
const ecs_world_t *world,
ecs_entity_t type,
ecs_strbuf_t *buf_out);
Expand Down
2 changes: 1 addition & 1 deletion include/flecs/addons/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ char* ecs_type_info_to_json(
* @return Zero if success, non-zero if failed.
*/
FLECS_API
char* ecs_type_info_to_json_buf(
int ecs_type_info_to_json_buf(
const ecs_world_t *world,
ecs_entity_t type,
ecs_strbuf_t *buf_out);
Expand Down
4 changes: 2 additions & 2 deletions src/addons/json/serialize_type_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int json_typeinfo_ser_type_ops(
return -1;
}

int ecs_type_info_to_buf(
int ecs_type_info_to_json_buf(
const ecs_world_t *world,
ecs_entity_t type,
ecs_strbuf_t *buf)
Expand Down Expand Up @@ -196,7 +196,7 @@ char* ecs_type_info_to_json(
{
ecs_strbuf_t str = ECS_STRBUF_INIT;

if (ecs_type_info_to_buf(world, type, &str) != 0) {
if (ecs_type_info_to_json_buf(world, type, &str) != 0) {
ecs_strbuf_reset(&str);
return NULL;
}
Expand Down

0 comments on commit e5f5b80

Please sign in to comment.