Changeset 72741f4 in buchla-68k for ram/sqscan.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/sqscan.c

    r7c5def4 r72741f4  
    6363        }
    6464
    65         cval = spool;
     65        cval = (struct s_entry *)spool;
    6666
    6767        if (ptr LT cval) {
     
    7575        }
    7676
    77         cval = &spool[(int32_t)MAX_SE-1];
     77        cval = (struct s_entry *)&spool[(int32_t)MAX_SE-1];
    7878
    7979        if (ptr GT cval) {
     
    104104        nsp->e_vel   = vel;
    105105
    106         return(e_ins((struct s_entry *)nsp, ep_adj(p_cur, 0, t_cur))->e_fwd);
     106        return((struct n_entry *)
     107                e_ins((struct s_entry *)nsp, ep_adj(p_cur, 0, t_cur))->e_fwd);
    107108}
    108109
     
    704705                while (tsp2) {
    705706
    706                         tsp3 = &spool[0];
     707                        tsp3 = (struct s_entry *)&spool[0];
    707708
    708709                        if (tsp2 LT tsp3) {
     
    715716                        }
    716717
    717                         tsp3 = &spool[MAX_SE-1];
     718                        tsp3 = (struct s_entry *)&spool[MAX_SE-1];
    718719
    719720                        if (tsp2 GT tsp3) {
     
    840841
    841842                noteon = t_cur;
    842                 p_cur = insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
     843                p_cur = (struct s_entry *)insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
    843844
    844845                if (verbose)
     
    857858
    858859                noteoff = t_cur;
    859                 p_cur = insnevt(nsp1, EV_NEND, curgrp, notenum, 64);
     860                p_cur = (struct s_entry *)insnevt(nsp1, EV_NEND, curgrp, notenum, 64);
    860861
    861862                if (verbose)
     
    882883                }
    883884
    884                 p_cur = insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
     885                p_cur = (struct s_entry *)insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
    885886
    886887                if (E_NULL EQ (nsp1 = (struct n_entry *)e_alc(E_SIZE1))) {
     
    915916        }
    916917
    917         p_cur = insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
     918        p_cur = (struct s_entry *)insnevt(nsp1, EV_NBEG, curgrp, notenum, 64);
    918919
    919920        if (E_NULL EQ (nsp1 = (struct n_entry *)e_alc(E_SIZE1))) {
Note: See TracChangeset for help on using the changeset viewer.