- Timestamp:
- 11/12/2017 08:27:47 PM (7 years ago)
- Branches:
- master
- Children:
- 210d896
- Parents:
- f798356
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/delpnts.c
rf798356 rde91266 94 94 95 95 *(fpu + (fnoff[i] << 4) + FPU_TCTL) = 96 ( fp->idftmd = (fp->idftmd & ~3) | 1);96 (uint16_t)(fp->idftmd = (fp->idftmd & ~3) | 1); 97 97 } 98 98 … … 106 106 pp2 = &vp->idhpnt[pt2]; 107 107 108 for (i = nmv * PT_SIZE; i > 0; i--)108 for (i = nmv * (int16_t)PT_SIZE; i > 0; i--) 109 109 *pp1++ = *pp2++; 110 110 111 111 /* adjust total points remaining */ 112 112 113 vp->idhplft += np;113 vp->idhplft = (int8_t)(vp->idhplft + np); 114 114 115 115 /* adjust number of points in this function */ 116 116 117 vp->idhfnc[curfunc].idfpif -= np; 117 vp->idhfnc[curfunc].idfpif = 118 (int8_t)(vp->idhfnc[curfunc].idfpif - np); 118 119 119 120 /* adjust starting points in other functions */ 120 121 121 122 for (cf = curfunc + 1; cf < NFINST; cf++) 122 vp->idhfnc[cf].idfpt1 -= np; 123 vp->idhfnc[cf].idfpt1 = 124 (int8_t)(vp->idhfnc[cf].idfpt1 - np); 123 125 124 126 setipl(oldi); /* +++++ restore interrupts +++++ */ … … 154 156 pp2 = &vp->idhpnt[pt2]; 155 157 156 for (i = nmv * PT_SIZE; i > 0; i--)158 for (i = nmv * (int16_t)PT_SIZE; i > 0; i--) 157 159 *pp1++ = *pp2++; 158 160 159 161 /* adjust total points remaining */ 160 162 161 vp->idhplft += (np - 1);163 vp->idhplft = (int8_t)(vp->idhplft + (np - 1)); 162 164 163 165 /* adjust number of points in this function */ 164 166 165 vp->idhfnc[curfunc].idfpif -= (np - 1); 167 vp->idhfnc[curfunc].idfpif = 168 (int8_t)(vp->idhfnc[curfunc].idfpif - (np - 1)); 166 169 167 170 /* adjust starting points in other functions */ 168 171 169 172 for (cf = curfunc + 1; cf < NFINST; cf++) 170 vp->idhfnc[cf].idfpt1 -= (np - 1); 173 vp->idhfnc[cf].idfpt1 = 174 (int8_t)(vp->idhfnc[cf].idfpt1 - (np - 1)); 171 175 } 172 176
Note:
See TracChangeset
for help on using the changeset viewer.