Changeset 8d0af8a in buchla-68k for ram/nedacc.c


Ignore:
Timestamp:
11/15/2017 08:04:44 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
3c45656
Parents:
58ff1a9
Message:

Fixed mixed-type pointer comparisons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/nedacc.c

    r58ff1a9 r8d0af8a  
    8383        }
    8484
    85         if (E_NULL NE (ep = (struct n_entry *)e_alc(E_SIZE1))) {
     85        if ((struct n_entry *)E_NULL NE (ep = (struct n_entry *)e_alc(E_SIZE1))) {
    8686
    8787#if     DEBUGIT
     
    119119        DB_ENTR("ned_nat");
    120120
    121         if (E_NULL NE (ep = (struct n_entry *)e_alc(E_SIZE1))) {
     121        if ((struct n_entry *)E_NULL NE (ep = (struct n_entry *)e_alc(E_SIZE1))) {
    122122
    123123#if     DEBUGIT
     
    229229                                                        DB_CMNT("nedesub - note begin / fini hit");
    230230
    231                                                         if (E_NULL NE (np = (struct n_entry *)e_alc(E_SIZE1))) {
     231                                                        if ((struct n_entry *)E_NULL NE
     232                                                                (np = (struct n_entry *)e_alc(E_SIZE1))) {
    232233
    233234#if     DEBUGIT
     
    373374                DB_CMNT("ned_mvn - clipping out begin");
    374375
    375                 if (p_bak EQ bp)
     376                if (p_bak EQ (struct s_entry *)bp)
    376377                        p_bak = bp->e_fwd;
    377378
    378                 if (p_ctr EQ bp)
     379                if (p_ctr EQ (struct s_entry *)bp)
    379380                        p_ctr = bp->e_fwd;
    380381
    381                 if (p_cur EQ bp)
     382                if (p_cur EQ (struct s_entry *)bp)
    382383                        p_cur = bp->e_fwd;
    383384
    384                 if (p_fwd EQ bp)
     385                if (p_fwd EQ (struct s_entry *)bp)
    385386                        p_fwd = bp->e_fwd;
    386387
     
    391392                DB_CMNT("ned_mvn - clipping out end");
    392393
    393                 if (p_bak EQ ep)
     394                if (p_bak EQ (struct s_entry *)ep)
    394395                        p_bak = ep->e_fwd;
    395396
    396                 if (p_ctr EQ ep)
     397                if (p_ctr EQ (struct s_entry *)ep)
    397398                        p_ctr = ep->e_fwd;
    398399
    399                 if (p_cur EQ ep)
     400                if (p_cur EQ (struct s_entry *)ep)
    400401                        p_cur = ep->e_fwd;
    401402
    402                 if (p_fwd EQ ep)
     403                if (p_fwd EQ (struct s_entry *)ep)
    403404                        p_fwd = ep->e_fwd;
    404405
     
    422423        } else {
    423424
    424                 if (E_NULL NE fcnote(grp, cnote)) {
     425                if ((struct n_entry *)E_NULL NE fcnote(grp, cnote)) {
    425426
    426427                        notesel = TRUE;                 /* note selected */
     
    430431                } else if (-1 NE (note = accnote())) {
    431432
    432                         if (E_NULL NE (bp = fcnote(grp, note))) {
     433                        if ((struct n_entry *)E_NULL NE
     434                                (bp = fcnote(grp, note))) {
    433435
    434436                                notesel = TRUE;         /* note selected */
     
    475477                DB_CMNT("ned_mvb - clipping out begin");
    476478
    477                 if (p_bak EQ bp)
     479                if (p_bak EQ (struct s_entry *)bp)
    478480                        p_bak = bp->e_fwd;
    479481
    480                 if (p_ctr EQ bp)
     482                if (p_ctr EQ (struct s_entry *)bp)
    481483                        p_ctr = bp->e_fwd;
    482484
    483                 if (p_cur EQ bp)
     485                if (p_cur EQ (struct s_entry *)bp)
    484486                        p_cur = bp->e_fwd;
    485487
    486                 if (p_fwd EQ bp)
     488                if (p_fwd EQ (struct s_entry *)bp)
    487489                        p_fwd = bp->e_fwd;
    488490
     
    502504        } else {
    503505
    504                 if (E_NULL NE fcnote(grp, cnote)) {     /* natural ? */
     506                if ((struct n_entry *)E_NULL NE fcnote(grp, cnote)) {   /* natural ? */
    505507
    506508                        notesel = TRUE;                 /* note selected */
     
    510512                } else if (-1 NE (note = accnote())) {  /* accidental ? */
    511513
    512                         if (E_NULL NE (bp = fcnote(grp, note))) {
     514                        if ((struct n_entry *)E_NULL NE
     515                                (bp = fcnote(grp, note))) {
    513516
    514517                                notesel = TRUE;         /* note selected */
     
    555558                DB_CMNT("ned_mve - clipping out end");
    556559
    557                 if (p_bak EQ ep)
     560                if (p_bak EQ (struct s_entry *)ep)
    558561                        p_bak = ep->e_fwd;
    559562
    560                 if (p_ctr EQ ep)
     563                if (p_ctr EQ (struct s_entry *)ep)
    561564                        p_ctr = ep->e_fwd;
    562565
    563                 if (p_cur EQ ep)
     566                if (p_cur EQ (struct s_entry *)ep)
    564567                        p_cur = ep->e_fwd;
    565568
    566                 if (p_fwd EQ ep)
     569                if (p_fwd EQ (struct s_entry *)ep)
    567570                        p_fwd = ep->e_fwd;
    568571
     
    582585        } else {
    583586
    584                 if (E_NULL NE fcnote(grp, cnote)) {     /* natural ? */
     587                if ((struct n_entry *)E_NULL NE fcnote(grp, cnote)) {   /* natural ? */
    585588
    586589                        notesel = TRUE;                 /* note selected */
     
    590593                } else if (-1 NE (note = accnote())) {
    591594
    592                         if (E_NULL NE (bp = fcnote(grp, note))) {       /* accidental ? */
     595                        if ((struct n_entry *)E_NULL NE
     596                                (bp = fcnote(grp, note))) {     /* accidental ? */
    593597
    594598                                notesel = TRUE;         /* note selected */
Note: See TracChangeset for help on using the changeset viewer.