@@ -267,18 +267,18 @@ flattenJsonPathParseItem(StringInfo buf, int *result, struct Node *escontext,
267
267
case jpiString :
268
268
case jpiVariable :
269
269
case jpiKey :
270
- appendBinaryStringInfo (buf , ( char * ) & item -> value .string .len ,
270
+ appendBinaryStringInfo (buf , & item -> value .string .len ,
271
271
sizeof (item -> value .string .len ));
272
272
appendBinaryStringInfo (buf , item -> value .string .val ,
273
273
item -> value .string .len );
274
274
appendStringInfoChar (buf , '\0' );
275
275
break ;
276
276
case jpiNumeric :
277
- appendBinaryStringInfo (buf , ( char * ) item -> value .numeric ,
277
+ appendBinaryStringInfo (buf , item -> value .numeric ,
278
278
VARSIZE (item -> value .numeric ));
279
279
break ;
280
280
case jpiBool :
281
- appendBinaryStringInfo (buf , ( char * ) & item -> value .boolean ,
281
+ appendBinaryStringInfo (buf , & item -> value .boolean ,
282
282
sizeof (item -> value .boolean ));
283
283
break ;
284
284
case jpiAnd :
@@ -328,11 +328,11 @@ flattenJsonPathParseItem(StringInfo buf, int *result, struct Node *escontext,
328
328
int32 offs ;
329
329
330
330
appendBinaryStringInfo (buf ,
331
- ( char * ) & item -> value .like_regex .flags ,
331
+ & item -> value .like_regex .flags ,
332
332
sizeof (item -> value .like_regex .flags ));
333
333
offs = reserveSpaceForItemPointer (buf );
334
334
appendBinaryStringInfo (buf ,
335
- ( char * ) & item -> value .like_regex .patternlen ,
335
+ & item -> value .like_regex .patternlen ,
336
336
sizeof (item -> value .like_regex .patternlen ));
337
337
appendBinaryStringInfo (buf , item -> value .like_regex .pattern ,
338
338
item -> value .like_regex .patternlen );
@@ -393,7 +393,7 @@ flattenJsonPathParseItem(StringInfo buf, int *result, struct Node *escontext,
393
393
int offset ;
394
394
int i ;
395
395
396
- appendBinaryStringInfo (buf , ( char * ) & nelems , sizeof (nelems ));
396
+ appendBinaryStringInfo (buf , & nelems , sizeof (nelems ));
397
397
398
398
offset = buf -> len ;
399
399
@@ -431,10 +431,10 @@ flattenJsonPathParseItem(StringInfo buf, int *result, struct Node *escontext,
431
431
break ;
432
432
case jpiAny :
433
433
appendBinaryStringInfo (buf ,
434
- ( char * ) & item -> value .anybounds .first ,
434
+ & item -> value .anybounds .first ,
435
435
sizeof (item -> value .anybounds .first ));
436
436
appendBinaryStringInfo (buf ,
437
- ( char * ) & item -> value .anybounds .last ,
437
+ & item -> value .anybounds .last ,
438
438
sizeof (item -> value .anybounds .last ));
439
439
break ;
440
440
case jpiType :
@@ -496,7 +496,7 @@ reserveSpaceForItemPointer(StringInfo buf)
496
496
int32 pos = buf -> len ;
497
497
int32 ptr = 0 ;
498
498
499
- appendBinaryStringInfo (buf , ( char * ) & ptr , sizeof (ptr ));
499
+ appendBinaryStringInfo (buf , & ptr , sizeof (ptr ));
500
500
501
501
return pos ;
502
502
}
0 commit comments