Skip to content

Commit

Permalink
Fix conversion warnings. Refs #7363
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiSavici committed Apr 9, 2015
1 parent 5c458e0 commit a278230
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -234,7 +234,7 @@ int vtkMDHWSource::RequestInformation(vtkInformation *vtkNotUsed(request), vtkIn
m_presenter->executeLoadMetadata();
setTimeRange(outputVector);
std::vector<int> extents = dynamic_cast<MDHWInMemoryLoadingPresenter*>(m_presenter)->getExtents();
outputVector->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),&extents[0],extents.size());
outputVector->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),&extents[0],static_cast<int>(extents.size()));

return 1;
}
Expand Down
Expand Up @@ -158,9 +158,9 @@ namespace Mantid
Workspace_sptr ws = m_repository->fetchWorkspace(m_wsName);
IMDHistoWorkspace_sptr histoWs = boost::dynamic_pointer_cast<Mantid::API::IMDHistoWorkspace>(ws);
std::vector<int> extents(6, 0);
extents[1] = histoWs->getDimension(0)->getNBins();
extents[3] = histoWs->getDimension(1)->getNBins();
extents[5] = histoWs->getDimension(2)->getNBins();
extents[1] = static_cast<int>(histoWs->getDimension(0)->getNBins());
extents[3] = static_cast<int>(histoWs->getDimension(1)->getNBins());
extents[5] = static_cast<int>(histoWs->getDimension(2)->getNBins());

return extents;
}
Expand Down

0 comments on commit a278230

Please sign in to comment.