Changeset 72741f4 in buchla-68k for ram/delnote.c


Ignore:
Timestamp:
11/15/2017 07:28:55 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
00c31a2
Parents:
7c5def4
Message:

Fixed incompatible pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/delnote.c

    r7c5def4 r72741f4  
    7878                                        /* scan right from note begin until: */
    7979
    80                                         ep = bp->e_fwd;
     80                                        ep = (struct n_entry *)bp->e_fwd;
    8181                                        scantag = TRUE;
    8282
     
    102102
    103103                                                        if (cp EQ ep)
    104                                                                 cp = cp->e_bak;
     104                                                                cp = (struct n_entry *)cp->e_bak;
    105105
    106106                                                        if (p_ctr EQ ep)
     
    116116                                                                p_cur = p_cur->e_bak;
    117117
    118                                                         e_del(e_rmv(ep));
     118                                                        e_del(e_rmv((struct s_entry *)ep));
    119119
    120120                                                        /* delete note begin */
    121121
    122122                                                        if (cp EQ bp)
    123                                                                 cp = cp->e_bak;
     123                                                                cp = (struct n_entry *)cp->e_bak;
    124124
    125125                                                        if (p_ctr EQ bp)
     
    135135                                                                p_cur = p_cur->e_bak;
    136136
    137                                                         e_del(e_rmv(bp));
     137                                                        e_del(e_rmv((struct s_entry *)bp));
    138138
    139139                                                        disptag = TRUE;
     
    149149
    150150                                                        if (cp EQ bp)
    151                                                                 cp = cp->e_bak;
     151                                                                cp = (struct n_entry *)cp->e_bak;
    152152
    153153                                                        if (p_ctr EQ bp)
     
    163163                                                                p_cur = p_cur->e_bak;
    164164
    165                                                         e_del(e_rmv(bp));
     165                                                        e_del(e_rmv((struct s_entry *)bp));
    166166
    167167                                                        disptag = TRUE;
     
    173173                                                /* scan right */
    174174
    175                                                 ep = ep->e_fwd;
     175                                                ep = (struct n_entry *)ep->e_fwd;
    176176
    177177                                        }       /* end while (scantag) */
     
    181181                                /* scan left */
    182182
    183                                 bp = bp->e_bak;
     183                                bp = (struct n_entry *)bp->e_bak;
    184184
    185185                        }       /* end while (runtag) */
     
    207207                /* search current time for a bar marker - delete any found */
    208208
    209                 ep = ep_adj(p_cur, 1, ctime);
     209                ep = (struct n_entry *)ep_adj(p_cur, 1, ctime);
    210210
    211211                while (ctime EQ ep->e_time) {
    212212
    213                         bp = ep->e_fwd;
     213                        bp = (struct n_entry *)ep->e_fwd;
    214214
    215215                        if (EV_BAR EQ ep->e_type) {
     
    227227                                        p_fwd = p_fwd->e_bak;
    228228
    229                                 e_del(e_rmv(ep));
     229                                e_del(e_rmv((struct s_entry *)ep));
    230230                                disptag = TRUE;
    231231                        }
Note: See TracChangeset for help on using the changeset viewer.