mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Incorrect casting.
This commit is contained in:
parent
c124fa1f18
commit
8f4ba58fe7
1 changed files with 8 additions and 1 deletions
|
@ -96,7 +96,14 @@ public abstract class CVariable extends CDebugElement
|
|||
*/
|
||||
public boolean hasValueChanged() throws DebugException
|
||||
{
|
||||
return ( !(((CValue)getValue()).getType() == ICValue.TYPE_POINTER) && getValue().hasVariables() ) ? false : fChanged;
|
||||
IValue value = getValue();
|
||||
if ( value != null )
|
||||
{
|
||||
if ( value instanceof CValue && ((CValue)getValue()).getType() == ICValue.TYPE_POINTER )
|
||||
return false;
|
||||
return ( value.hasVariables() ) ? false : fChanged;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue