Ignore:
Timestamp:
09/08/11 21:52:06 (13 years ago)
Author:
tbretz
Message:
Fixed memory (write) access in GetPixelMax
File:
1 edited

Legend:

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

    r11969 r12045  
    378378    }
    379379
    380     static void GetPixelMax(float *ptr, const float *data, uint16_t roi, uint16_t first, uint16_t last)
     380    static void GetPixelMax(float *ptr, const float *data, uint16_t roi, int32_t first, int32_t last)
    381381    {
    382382        if (roi==0 || first>=roi || last>=roi || last<first)
     
    394394                    pos = j;
    395395
    396             *(ptr+1440+i) = vec[pos];
     396            ptr[i] = vec[pos];
    397397        }
    398398    }
Note: See TracChangeset for help on using the changeset viewer.