Changeset 19405 for trunk/Mars/mcore


Ignore:
Timestamp:
11/15/18 20:12:28 (6 years ago)
Author:
tbretz
Message:
n can be of type size_t, no need for a cast. It will not be negative:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/fits.h

    r19404 r19405  
    306306
    307307                std::istringstream sin(fmt);
    308                 int n = 0;
     308                size_t n = 0;
    309309                sin >> n;
    310310                if (!sin)
     
    344344                }
    345345
    346                 const Table::Column col = { i, bytes, size_t(n), size, n*size, type, unit, comm, compress };
     346                const Table::Column col = { i, bytes, n, size, n*size, type, unit, comm, compress };
    347347
    348348                cols[id] = col;
Note: See TracChangeset for help on using the changeset viewer.