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


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

Fixed mixed-type pointer comparisons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/delnote.c

    r58ff1a9 r8d0af8a  
    104104                                                                cp = (struct n_entry *)cp->e_bak;
    105105
    106                                                         if (p_ctr EQ ep)
     106                                                        if (p_ctr EQ (struct s_entry *)ep)
    107107                                                                p_ctr = p_ctr->e_bak;
    108108
    109                                                         if (p_bak EQ ep)
     109                                                        if (p_bak EQ (struct s_entry *)ep)
    110110                                                                p_bak = p_bak->e_bak;
    111111
    112                                                         if (p_fwd EQ ep)
     112                                                        if (p_fwd EQ (struct s_entry *)ep)
    113113                                                                p_fwd = p_fwd->e_bak;
    114114
    115                                                         if (p_cur EQ ep)
     115                                                        if (p_cur EQ (struct s_entry *)ep)
    116116                                                                p_cur = p_cur->e_bak;
    117117
     
    123123                                                                cp = (struct n_entry *)cp->e_bak;
    124124
    125                                                         if (p_ctr EQ bp)
     125                                                        if (p_ctr EQ (struct s_entry *)bp)
    126126                                                                p_ctr = p_ctr->e_bak;
    127127
    128                                                         if (p_bak EQ bp)
     128                                                        if (p_bak EQ (struct s_entry *)bp)
    129129                                                                p_bak = p_bak->e_bak;
    130130
    131                                                         if (p_fwd EQ bp)
     131                                                        if (p_fwd EQ (struct s_entry *)bp)
    132132                                                                p_fwd = p_fwd->e_bak;
    133133
    134                                                         if (p_cur EQ bp)
     134                                                        if (p_cur EQ (struct s_entry *)bp)
    135135                                                                p_cur = p_cur->e_bak;
    136136
     
    151151                                                                cp = (struct n_entry *)cp->e_bak;
    152152
    153                                                         if (p_ctr EQ bp)
     153                                                        if (p_ctr EQ (struct s_entry *)bp)
    154154                                                                p_ctr = p_ctr->e_bak;
    155155
    156                                                         if (p_bak EQ bp)
     156                                                        if (p_bak EQ (struct s_entry *)bp)
    157157                                                                p_bak = p_bak->e_bak;
    158158
    159                                                         if (p_fwd EQ bp)
     159                                                        if (p_fwd EQ (struct s_entry *)bp)
    160160                                                                p_fwd = p_fwd->e_bak;
    161161
    162                                                         if (p_cur EQ bp)
     162                                                        if (p_cur EQ (struct s_entry *)bp)
    163163                                                                p_cur = p_cur->e_bak;
    164164
     
    215215                        if (EV_BAR EQ ep->e_type) {
    216216
    217                                 if (ep EQ p_bak)
     217                                if (ep EQ (struct n_entry *)p_bak)
    218218                                        p_bak = p_bak->e_bak;
    219219
    220                                 if (ep EQ p_ctr)
     220                                if (ep EQ (struct n_entry *)p_ctr)
    221221                                        p_ctr = p_ctr->e_bak;
    222222
    223                                 if (ep EQ p_cur)
     223                                if (ep EQ (struct n_entry *)p_cur)
    224224                                        p_cur = p_cur->e_bak;
    225225
    226                                 if (ep EQ p_fwd)
     226                                if (ep EQ (struct n_entry *)p_fwd)
    227227                                        p_fwd = p_fwd->e_bak;
    228228
Note: See TracChangeset for help on using the changeset viewer.