fixed some implicit cast warnings

parent 72597c1d
......@@ -95,7 +95,7 @@ namespace campvis {
glViewport(0, 0, static_cast<GLsizei>(size.x), static_cast<GLsizei>(size.y));
// render quad to compute difference measure by shader
for (tgt::svec3::ElemType z = 0; z < size.z; ++z) {
for (int z = 0; z < static_cast<int>(size.z); ++z) {
float zTexCoord = static_cast<float>(z)/static_cast<float>(size.z) + .5f/static_cast<float>(size.z);
_shader->setUniform("_zTexCoord", zTexCoord);
_fbo->attachTexture(resultTexture, GL_COLOR_ATTACHMENT0, 0, z);
......
......@@ -69,8 +69,8 @@ void RandomWalksCore::setLabeling(const std::vector<int> * seeds, const std::ve
void RandomWalksCore::assemble_Lu_b()
{
const int n = seeds->size();// # marked nodes
const int q = numel-seeds->size(); // # unmarked nodes
const int n = static_cast<int>(seeds->size());// # marked nodes
const int q = static_cast<int>(numel-seeds->size()); // # unmarked nodes
// Permutation matrix to get UNMARKED COLUMNS
SparseMatrix<double> Cu(numel,q);
......@@ -112,8 +112,8 @@ void RandomWalksCore::assemble_Lu_b()
void RandomWalksCore::generateUniqueIndices()
{
const int n = seeds->size();// # marked nodes
const int q = numel-seeds->size(); // # unmarked nodes
const int n = static_cast<int>(seeds->size());// # marked nodes
const int q = static_cast<int>(numel-seeds->size()); // # unmarked nodes
std::vector<int> uidx_temp(numel);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment