File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3571,11 +3571,13 @@ internal TS_TASK_FUNCTION_DEF(p2r_bake_string_map_join_task__entry_point)
3571
3571
{
3572
3572
for (U64 slot_idx = in -> slot_idx_range .min ; slot_idx < in -> slot_idx_range .max ; slot_idx += 1 )
3573
3573
{
3574
- if (in -> dst_map -> slots [slot_idx ] == 0 )
3574
+ B32 src_slots_good = (in -> src_maps [src_map_idx ] != 0 && in -> src_maps [src_map_idx ]-> slots != 0 );
3575
+ B32 dst_slot_is_zero = (in -> dst_map -> slots [slot_idx ] == 0 );
3576
+ if (src_slots_good && dst_slot_is_zero )
3575
3577
{
3576
3578
in -> dst_map -> slots [slot_idx ] = in -> src_maps [src_map_idx ]-> slots [slot_idx ];
3577
3579
}
3578
- else if (in -> src_maps [src_map_idx ]-> slots [slot_idx ] != 0 )
3580
+ else if (src_slots_good && in -> src_maps [src_map_idx ]-> slots [slot_idx ] != 0 )
3579
3581
{
3580
3582
rdim_bake_string_chunk_list_concat_in_place (in -> dst_map -> slots [slot_idx ], in -> src_maps [src_map_idx ]-> slots [slot_idx ]);
3581
3583
}
You can’t perform that action at this time.
0 commit comments