{
long count = filterConverter->toLong(arguments[5]);
- if(count > 0.0)
+ if(count > 0)
{
dplEvent->setLimit(count);
}
- else if ( count == 0.0)
+ else if ( count == 0)
{
- dplEvent->setLimit(-1);
+ dplEvent->setLimit(-1); // -1 is all row.
}
else
{
if(argumentCount >= 7) //optional unsigned long? offset
{
long offset = filterConverter->toLong(arguments[6]);
- if(offset != 0.0)
+ if(offset != 0)
{
dplEvent->setOffset(offset);
}
else
{
- dplEvent->setOffset(-1);
+ dplEvent->setOffset(0);
}
}
dplEvent->setPrivateData( DPL::StaticPointerCast<IEventPrivateData> (cbm));