Commit 41229af16e028cbd94c8a1408dc636fdb12fb5e0
1 parent
fceee190
fixed type error in Linux
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
stim/envi/hsi.h
... | ... | @@ -128,14 +128,14 @@ public: |
128 | 128 | |
129 | 129 | /// Get the list of band numbers that bound a list of wavelengths |
130 | 130 | void band_bounds(std::vector<double> wavelengths, |
131 | - std::vector<unsigned long long>& low_bands, | |
132 | - std::vector<unsigned long long>& high_bands) { | |
131 | + std::vector<size_t>& low_bands, | |
132 | + std::vector<size_t>& high_bands) { | |
133 | 133 | |
134 | 134 | unsigned long long W = w.size(); //get the number of wavelengths in the list |
135 | 135 | low_bands.resize(W); //pre-allocate space for the band lists |
136 | 136 | high_bands.resize(W); |
137 | 137 | |
138 | - for (unsigned long long wl = 0; wl < W; wl++) { //for each wavelength | |
138 | + for (size_t wl = 0; wl < W; wl++) { //for each wavelength | |
139 | 139 | band_bounds(wavelengths[wl], low_bands[wl], high_bands[wl]); //find the low and high bands |
140 | 140 | } |
141 | 141 | } | ... | ... |