Changeset ffce2bc in buchla-68k
- Timestamp:
- 11/12/2017 08:41:29 PM (7 years ago)
- Branches:
- master
- Children:
- 8a3cab0
- Parents:
- b2691c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ram/etiwsn.c
rb2691c2 rffce2bc 53 53 54 54 /* slot B */ 55 vbufs[curvce].idhwsb = tmpval - 1;55 vbufs[curvce].idhwsb = (int8_t)(tmpval - 1); 56 56 57 57 memcpyw(vbufs[curvce].idhwvbf, &wslib[tmpval - 1], … … 62 62 memcpyw(fpuws, vbufs[curvce].idhwvbf, NUMWPNT); 63 63 64 *(fpuws - 1) = vbufs[curvce].idhwvbf[0];65 *(fpuws + NUMWPNT) = vbufs[curvce].idhwvbf[NUMWPNT - 1];64 *(fpuws - 1) = (uint16_t)vbufs[curvce].idhwvbf[0]; 65 *(fpuws + NUMWPNT) = (uint16_t)vbufs[curvce].idhwvbf[NUMWPNT - 1]; 66 66 67 67 } else { … … 69 69 /* slot A */ 70 70 71 vbufs[curvce].idhwsa = tmpval - 1;71 vbufs[curvce].idhwsa = (int8_t)(tmpval - 1); 72 72 73 73 memcpyw(vbufs[curvce].idhwvaf, &wslib[tmpval - 1], … … 78 78 memcpyw(fpuws, vbufs[curvce].idhwvaf, NUMWPNT); 79 79 80 *(fpuws - 1) = vbufs[curvce].idhwvaf[0];81 *(fpuws + NUMWPNT) = vbufs[curvce].idhwvaf[NUMWPNT - 1];80 *(fpuws - 1) = (uint8_t)vbufs[curvce].idhwvaf[0]; 81 *(fpuws + NUMWPNT) = (uint8_t)vbufs[curvce].idhwvaf[NUMWPNT - 1]; 82 82 } 83 83 … … 124 124 125 125 ec = stccol - cfetp->flcol; /* setup edit buffer column */ 126 ebuf[ec] = k + '0';/* enter new data in buffer */126 ebuf[ec] = (int8_t)(k + '0'); /* enter new data in buffer */ 127 127 ebuf[2] = '\0'; /* make sure string is terminated */ 128 128 129 dspbuf[0] = k + '0';/* setup for display */129 dspbuf[0] = (int8_t)(k + '0'); /* setup for display */ 130 130 dspbuf[1] = '\0'; 131 131
Note:
See TracChangeset
for help on using the changeset viewer.