Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit 500fe8f1 authored by loring's avatar loring
Browse files

clean up signed unsigned comparison warnings in ProgrammableCompositer


git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@27823 18c085ea-50e0-402c-830e-de6fd14e8384
parent e0856dc7
......@@ -690,19 +690,19 @@ ImageBuffer<im_t>::ImageBuffer(im_t ar, im_t ag, im_t ab, im_t aa, size_t an)
size_t nbytes = sizeof(im_t)*size;
r = static_cast<im_t*>(aligned_alloc(alignment, nbytes));
for (int i = 0; i < size; ++i)
for (size_t i = 0; i < size; ++i)
r[i] = ar;
g = static_cast<im_t*>(aligned_alloc(alignment, nbytes));
for (int i = 0; i < size; ++i)
for (size_t i = 0; i < size; ++i)
g[i] = ag;
b = static_cast<im_t*>(aligned_alloc(alignment, nbytes));
for (int i = 0; i < size; ++i)
for (size_t i = 0; i < size; ++i)
b[i] = ab;
a = static_cast<im_t*>(aligned_alloc(alignment, nbytes));
for (int i = 0; i < size; ++i)
for (size_t i = 0; i < size; ++i)
a[i] = aa;
}
......@@ -1537,7 +1537,7 @@ ProgrammableCompositer<T>::SetBackground(
// background is always opaque.
size_t n = w*h;
ab = static_cast<T*>(aligned_alloc(alignment, n*sizeof(T)));
for (int i = 0; i < n; ++i)
for (size_t i = 0; i < n; ++i)
ab[i] = color_tt<T>::max();
ownbg = aown;
......
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