Skip to content

Commit 7c4ce25

Browse files
committed
Return tail if CCDBuffer overflows
1 parent b9918b0 commit 7c4ce25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scalable_ccd/cuda/narrow_phase/ccd_buffer.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct CCDBuffer {
2626
{
2727
if (is_full()) {
2828
atomicCAS(&m_overflow_flag, 0, 1);
29-
return;
29+
return m_data[m_tail]; // Return a dummy value
3030
}
3131
const int i = atomicInc(&m_tail, m_capacity - 1);
3232
m_data[i] = val;

0 commit comments

Comments
 (0)