Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbe68a4e

Browse files
author
Nikita Glukhov
committed
Fix appendToBuffer() signature
1 parent9c5809a commitbe68a4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/backend/utils/adt/jsonb_util.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static void convertJsonbObject(StringInfo buffer, JEntry *header, const JsonbVal
8787
staticvoidconvertJsonbBinary(StringInfobuffer,JEntry*header,constJsonbValue*val,intlevel);
8888
staticvoidconvertJsonbScalar(StringInfobuffer,JEntry*header,constJsonbValue*scalarVal);
8989

90-
staticvoidcopyToBuffer(StringInfobuffer,intoffset,constchar*data,intlen);
90+
staticvoidcopyToBuffer(StringInfobuffer,intoffset,constvoid*data,intlen);
9191
staticshortpadBufferToInt(StringInfobuffer);
9292

9393
staticJsonbIterator*iteratorFromContainer(JsonContainer*container,JsonbIterator*parent);
@@ -1541,7 +1541,7 @@ reserveFromBuffer(StringInfo buffer, int len)
15411541
* Copy 'len' bytes to a previously reserved area in buffer.
15421542
*/
15431543
staticvoid
1544-
copyToBuffer(StringInfobuffer,intoffset,constchar*data,intlen)
1544+
copyToBuffer(StringInfobuffer,intoffset,constvoid*data,intlen)
15451545
{
15461546
memcpy(buffer->data+offset,data,len);
15471547
}
@@ -1550,7 +1550,7 @@ copyToBuffer(StringInfo buffer, int offset, const char *data, int len)
15501550
* A shorthand for reserveFromBuffer + copyToBuffer.
15511551
*/
15521552
void
1553-
appendToBuffer(StringInfobuffer,constchar*data,intlen)
1553+
appendToBuffer(StringInfobuffer,constvoid*data,intlen)
15541554
{
15551555
intoffset;
15561556

‎src/include/utils/jsonb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,6 @@ extern Jsonb *JsonbValueToJsonb(JsonbValue *val);
373373
externvoidJsonbHashScalarValue(constJsonbValue*scalarVal,uint32*hash);
374374

375375
externintreserveFromBuffer(StringInfobuffer,intlen);
376-
externvoidappendToBuffer(StringInfobuffer,constchar*data,intlen);
376+
externvoidappendToBuffer(StringInfobuffer,constvoid*data,intlen);
377377

378378
#endif/* __JSONB_H__ */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp