Changeset 57425b6 in buchla-68k for ram/uslice.c


Ignore:
Timestamp:
11/12/2017 09:16:54 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
522c363
Parents:
e2707e9
Message:

Fixed uslice.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/uslice.c

    re2707e9 r57425b6  
    135135        struct gdsel *gdsep;
    136136        uint16_t i, ncolor, w;
    137         uint16_t *ncptr, *nctabp;
     137        uint16_t *ncptr;
     138        int16_t *nctabp;
    138139        struct gdsel **gdstp, *gdprv, *gdnxt;
    139140        int16_t wrote;
     
    225226                                /* get event color */
    226227
    227                                 ncolor = mask1 & gdsep->note;
     228                                ncolor = mask1 & (uint16_t)gdsep->note;
    228229
    229230                                /* update the slice */
     
    313314void rslice(struct gdsel *gdstb[])
    314315{
    315         register struct gdsel *gdsep;
    316         register struct gdsel **gdstp;
    317         register uint16_t *nctabp;
    318         register uint16_t i, nc;
     316        struct gdsel *gdsep;
     317        struct gdsel **gdstp;
     318        int16_t *nctabp;
     319        uint16_t i;
    319320        struct gdsel *gdprv, *gdnxt;
    320321
     
    347348                                /* update and check update note status code */
    348349
    349                                 if (0 EQ (gdsep->code = nctabp[nc = gdsep->code])) {
     350                                if (0 EQ (gdsep->code = nctabp[gdsep->code])) {
    350351
    351352#if DEBUGIT
     
    509510                                pxptr = &epxtbl[gdsep->code][0];
    510511
    511                                 ncolor = gdsep->note;   /* get event color */
     512                                ncolor = (uint16_t)gdsep->note; /* get event color */
    512513
    513514                                /* update the slice */
Note: See TracChangeset for help on using the changeset viewer.