Skip to content

Commit 5436084

Browse files
committed
Fix incorrect type in sg_private_sort_p1u16_p1i8
Signed-off-by: jinge90 <[email protected]>
1 parent b079feb commit 5436084

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libdevice/fallback-gsort.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7001,13 +7001,13 @@ void SG_PS_D(p1u8_p1u8_u32_p1i8)(uint8_t *key, uint8_t *val, uint8_t *scratch) {
70017001

70027002
DEVICE_EXTERN_C_INLINE
70037003
void SG_PS_A(p1u8_p1i8_u32_p1i8)(uint8_t *key, int8_t *val, uint8_t *scratch) {
7004-
private_merge_sort_key_value_close(key, reinterpret_cast<int8_t *>(val), 1,
7004+
private_merge_sort_key_value_close(key, reinterpret_cast<uint8_t *>(val), 1,
70057005
scratch, std::less_equal<uint8_t>{});
70067006
}
70077007

70087008
DEVICE_EXTERN_C_INLINE
70097009
void SG_PS_D(p1u8_p1i8_u32_p1i8)(uint8_t *key, int8_t *val, uint8_t *scratch) {
7010-
private_merge_sort_key_value_close(key, reinterpret_cast<int8_t *>(val), 1,
7010+
private_merge_sort_key_value_close(key, reinterpret_cast<uint8_t *>(val), 1,
70117011
scratch, std::greater_equal<uint8_t>{});
70127012
}
70137013

@@ -7124,14 +7124,14 @@ void SG_PS_D(p1u16_p1u8_u32_p1i8)(uint16_t *key, uint8_t *val,
71247124
DEVICE_EXTERN_C_INLINE
71257125
void SG_PS_A(p1u16_p1i8_u32_p1i8)(uint16_t *key, int8_t *val,
71267126
uint8_t *scratch) {
7127-
private_merge_sort_key_value_close(key, reinterpret_cast<int8_t *>(val), 1,
7127+
private_merge_sort_key_value_close(key, reinterpret_cast<uint8_t *>(val), 1,
71287128
scratch, std::less_equal<uint16_t>{});
71297129
}
71307130

71317131
DEVICE_EXTERN_C_INLINE
71327132
void SG_PS_D(p1u16_p1i8_u32_p1i8)(uint16_t *key, int8_t *val,
71337133
uint8_t *scratch) {
7134-
private_merge_sort_key_value_close(key, reinterpret_cast<int8_t *>(val), 1,
7134+
private_merge_sort_key_value_close(key, reinterpret_cast<uint8_t *>(val), 1,
71357135
scratch, std::greater_equal<uint16_t>{});
71367136
}
71377137

0 commit comments

Comments
 (0)