Changeset a8b81c2 in buchla-68k
- Timestamp:
- 11/12/2017 07:42:11 PM (7 years ago)
- Branches:
- master
- Children:
- 7c05959
- Parents:
- 908b6ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/etres1.c
r908b6ab ra8b81c2 16 16 int16_t et_res1(int16_t n) 17 17 { 18 ebuf[0] = anrs[n][abs(angroup)-1];18 ebuf[0] = (int8_t)anrs[n][abs(angroup)-1]; 19 19 ebflag = TRUE; 20 20 return(SUCCESS); … … 48 48 if (E_NULL NE (ep = findev(p_cur, t_cur, EV_ANRS, vg, -1))) { 49 49 50 ep->e_data2 = ival;50 ep->e_data2 = (int8_t)ival; 51 51 52 52 } else if (E_NULL NE (ep = e_alc(E_SIZE2))) { 53 53 54 54 ep->e_type = EV_ANRS; 55 ep->e_data1 = vg;56 ep->e_data2 = ival;55 ep->e_data1 = (int8_t)vg; 56 ep->e_data2 = (int8_t)ival; 57 57 ep->e_time = t_cur; 58 58 p_cur = e_ins(ep, ep_adj(p_cur, 0, t_cur))->e_fwd; … … 99 99 (void)n; 100 100 101 ebuf[0] = k;101 ebuf[0] = (int8_t)k; 102 102 103 103 if (v_regs[5] & 0x0180) … … 135 135 136 136 val1 = val / 100; 137 ebuf[4] = ( val - (val1 * 100)) / 10;137 ebuf[4] = (int8_t)((val - (val1 * 100)) / 10); 138 138 val2 = val1 / 10; 139 ebuf[2] = val1 - (val2 * 10);140 ebuf[1] = val2;139 ebuf[2] = (int8_t)(val1 - (val2 * 10)); 140 ebuf[1] = (int8_t)val2; 141 141 142 142 ebflag = TRUE; … … 183 183 184 184 ep->e_type = EV_ANVL; 185 ep->e_data1 = vg;185 ep->e_data1 = (int8_t)vg; 186 186 ep->e_dn = (struct s_entry *)((int32_t)val << 16); 187 187 ep->e_time = t_cur; … … 223 223 224 224 val1 = val / 100; 225 buf[4] = '0' + ((val - (val1 * 100)) / 10);225 buf[4] = (int8_t)('0' + ((val - (val1 * 100)) / 10)); 226 226 val2 = val1 / 10; 227 buf[2] = '0' + (val1 - (val2 * 10));228 buf[1] = '0' + val2;227 buf[2] = (int8_t)('0' + (val1 - (val2 * 10))); 228 buf[1] = (int8_t)('0' + val2); 229 229 buf[3] = '.'; 230 230 buf[5] = '\0'; … … 255 255 return(FAILURE); 256 256 257 ebuf[ec] = k;257 ebuf[ec] = (int8_t)k; 258 258 259 259 if (ec EQ 0) … … 355 355 ec = stccol - cfetp->flcol; 356 356 357 ebuf[ec] = k + '0';357 ebuf[ec] = (int8_t)(k + '0'); 358 358 359 359 if (v_regs[5] & 0x0180)
Note:
See TracChangeset
for help on using the changeset viewer.