Ignore:
Timestamp:
Mar 6, 2012, 12:58:23 PM (13 years ago)
Author:
ldelgass
Message:

Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/PointSet.cpp

    r2798 r2814  
    5252    int index;
    5353    float d = _max - _min;
    54     for (/*empty*/; c <= end; c = (PCA::Cluster*)((char *)c+sizeof(PCA::Cluster))){
     54    for (; c <= end; c = (PCA::Cluster*)((char *)c+sizeof(PCA::Cluster))){
    5555        points = c->points;
    5656        numOfPoints = c->numOfPoints;
    57        
     57
    5858        for (int i = 0; i < numOfPoints; ++i) {
    59             index = (points[i].value - _min) / d  * (colorCount - 1);
     59            index = (int)((points[i].value - _min) / d  * (colorCount - 1));
    6060            if (index >= colorCount) {
    6161                index = colorCount - 1;
Note: See TracChangeset for help on using the changeset viewer.