We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9918b0 commit 7c4ce25Copy full SHA for 7c4ce25
src/scalable_ccd/cuda/narrow_phase/ccd_buffer.cuh
@@ -26,7 +26,7 @@ struct CCDBuffer {
26
{
27
if (is_full()) {
28
atomicCAS(&m_overflow_flag, 0, 1);
29
- return;
+ return m_data[m_tail]; // Return a dummy value
30
}
31
const int i = atomicInc(&m_tail, m_capacity - 1);
32
m_data[i] = val;
0 commit comments