- Timestamp:
- 11/12/2017 08:29:43 PM (7 years ago)
- Branches:
- master
- Children:
- d1ecb94
- Parents:
- de91266
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/seccpy.c
rde91266 r210d896 213 213 /* regroup */ 214 214 215 cp->e_data2 = ( cp->e_data2 & 0x00F0) |216 grptmap[grp] ;215 cp->e_data2 = (int8_t)((cp->e_data2 & 0x00F0) | 216 grptmap[grp]); 217 217 218 218 /* transpose */ … … 225 225 nv = 0; 226 226 227 cp->e_data1 = nv;227 cp->e_data1 = (int8_t)nv; 228 228 229 229 } else if ((et EQ EV_ANRS) OR (et EQ EV_ANVL)) { … … 231 231 /* regroup */ 232 232 233 cp->e_data1 = ( cp->e_data1 & 0x000F) |234 (grptmap[grp] << 4) ;233 cp->e_data1 = (int8_t)((cp->e_data1 & 0x000F) | 234 (grptmap[grp] << 4)); 235 235 236 236 } else { … … 239 239 240 240 if (cmgtype[et]) 241 cp->e_data2 = ( cp->e_data2 & 0x00F0) |242 grptmap[grp] ;241 cp->e_data2 = (int8_t)((cp->e_data2 & 0x00F0) | 242 grptmap[grp]); 243 243 else 244 cp->e_data1 = ( cp->e_data1 & 0x00F0) |245 grptmap[grp] ;244 cp->e_data1 = (int8_t)((cp->e_data1 & 0x00F0) | 245 grptmap[grp]); 246 246 } 247 247 } … … 357 357 /* regroup */ 358 358 359 rp->e_data2 = ( rp->e_data2 & 0x00F0) |360 grptmap[grp] ;359 rp->e_data2 = (int8_t)((rp->e_data2 & 0x00F0) | 360 grptmap[grp]); 361 361 362 362 /* transpose */ … … 369 369 nv = 0; 370 370 371 rp->e_data1 = nv;371 rp->e_data1 = (int8_t)nv; 372 372 373 373 } else if ((et EQ EV_ANRS) OR (et EQ EV_ANVL)) { … … 375 375 /* regroup */ 376 376 377 rp->e_data1 = ( rp->e_data1 & 0x000F) |378 (grptmap[grp] << 4) ;377 rp->e_data1 = (int8_t)((rp->e_data1 & 0x000F) | 378 (grptmap[grp] << 4)); 379 379 380 380 } else { … … 383 383 384 384 if (cmgtype[et]) 385 rp->e_data2 = ( rp->e_data2 & 0x00F0) |386 grptmap[grp] ;385 rp->e_data2 = (int8_t)((rp->e_data2 & 0x00F0) | 386 grptmap[grp]); 387 387 else 388 rp->e_data1 = ( rp->e_data1 & 0x00F0) |389 grptmap[grp] ;388 rp->e_data1 = (int8_t)((rp->e_data1 & 0x00F0) | 389 grptmap[grp]); 390 390 } 391 391 }
Note:
See TracChangeset
for help on using the changeset viewer.