Ignore:
Timestamp:
Mar 15, 2016, 6:35:28 PM (8 years ago)
Author:
meunier
Message:
  • Adding the parallel version of rosenfeld
File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/rosenfeld/nrc2/src/nrset1.c

    r772 r805  
    497497/* --------------------------------------------------------------------- */
    498498{
    499         int i;
    500         char c[1];
    501         for(i=nl; i<=nh; i++) {
    502 
    503                 *c = *str++;
    504                 if(isdigit(*c))
     499    // @QM
     500        int i;
     501        char c[2];
     502    c[1] = '\0';
     503        for (i = nl; i <= nh; i++) {
     504                c[0] = *str++;
     505                if (isdigit(c[0])) {
    505506                        v[i] = (uint8) atoi(c);
    506                 else
     507        }
     508                else {
    507509                        v[i] = (uint8) 0;
     510        }
    508511        }
    509512}
Note: See TracChangeset for help on using the changeset viewer.