Changeset 19405


Ignore:
Timestamp:
Nov 15, 2018, 8:12:28 PM (9 months 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.