Skip to content

Commit 0739c83

Browse files
committed
Fix the warnings when compiling against the current master branch of PostgreSQL
1 parent a670585 commit 0739c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zson.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ zson_out(PG_FUNCTION_ARGS)
362362
Datum zson_datum = PointerGetDatum(zson_bytea);
363363
Datum jsonb_datum = DirectFunctionCall1(zson_to_jsonb, zson_datum);
364364
Datum string_datum = DirectFunctionCall1(jsonb_out, jsonb_datum);
365-
PG_RETURN_CSTRING(string_datum);
365+
PG_RETURN_CSTRING(DatumGetCString(string_datum));
366366
}
367367

368368
inline static Size
@@ -617,7 +617,7 @@ zson_info(PG_FUNCTION_ARGS)
617617
(uint32)zson_size, (float)zson_size*100/(float)decoded_size
618618
);
619619

620-
PG_RETURN_CSTRING((Datum)string_buff);
620+
PG_RETURN_CSTRING(string_buff);
621621
}
622622

623623
/*

0 commit comments

Comments
 (0)