IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 1, 2006, 6:08:45 PM (20 years ago)
Author:
jhoblitt
Message:

use long instead of int as loop counters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/p2insertPendingFrames.c

    r6978 r8062  
    1313
    1414    // can we use p2rawToPending() here?
    15     for (int i = 0; i < rawFrames->n; i++) {
     15    for (long i = 0; i < rawFrames->n; i++) {
    1616        rawScienceFrame *rawFrame = rawFrames->data[i];
    1717
     
    3232
    3333        int version = -1;
    34         for (int j = 0; j < exposures->n; j++) {
     34        for (long j = 0; j < exposures->n; j++) {
    3535            p2PendingExpRow *exposure = exposures->data[j];
    3636            version = PS_MAX(version, exposure->p2_version);
     
    5656        psArray *pendingImages = psArrayAlloc(rawFrame->images->n);
    5757        pendingImages->n = 0;
    58         for (int j = 0; j < rawFrame->images->n; j++) {
     58        for (long j = 0; j < rawFrame->images->n; j++) {
    5959            rawImfileRow *rawImage = rawFrame->images->data[j];
    6060            p2PendingImfileRow *pendingImage = p2PendingImfileRowAlloc(
     
    7676        }
    7777
    78         for (int i = 0; i < pendingImages->n; i++) {
     78        for (long i = 0; i < pendingImages->n; i++) {
    7979            if (!p2PendingImfileInsertObject(config->dbh,
    8080                    pendingImages->data[i])) {
Note: See TracChangeset for help on using the changeset viewer.