1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 311416: Small simplification in logic check.

This commit is contained in:
Marc Khouzam 2010-05-04 13:20:27 +00:00
parent 12eb24805f
commit 14c231b3ca

View file

@ -901,8 +901,8 @@ public class MIStack extends AbstractDsfService
// still be re-used.
StackDepthInfo cachedDepth = fStackDepthCache.get(execDmc.getThreadId());
if (cachedDepth != null) {
if ((maxDepth == 0 && cachedDepth.maxDepthRequested == 0) ||
(maxDepth != 0 && (cachedDepth.maxDepthRequested == 0 || cachedDepth.maxDepthRequested >= maxDepth)) )
if (cachedDepth.maxDepthRequested == 0 ||
(maxDepth != 0 && cachedDepth.maxDepthRequested >= maxDepth))
{
rm.setData(cachedDepth.returnedDepth);
rm.done();