coverity#1215280 Unchecked dynamic_cast
Change-Id: Ie03bb8a870c544eef656594f5ebab35bc61b9030
This commit is contained in:
parent
505c7801bc
commit
6a2017b9e9
@ -221,9 +221,9 @@ void OpGestep::GenSlidingWindowFunction(
|
||||
if (pCur->GetType() == formula::svSingleVectorRef)
|
||||
{
|
||||
#ifdef ISNAN
|
||||
const formula::SingleVectorRefToken* pSVR =
|
||||
dynamic_cast< const formula::SingleVectorRefToken* >(pCur);
|
||||
ss << " if (gid0 < " << pSVR->GetArrayLength() << ")\n";
|
||||
const formula::SingleVectorRefToken& rSVR =
|
||||
dynamic_cast< const formula::SingleVectorRefToken& >(*pCur);
|
||||
ss << " if (gid0 < " << rSVR.GetArrayLength() << ")\n";
|
||||
ss << " {\n";
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user