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

    r7c5def4 r72741f4  
    103103                /* move points down */
    104104
    105                 pp1 = &vp->idhpnt[pt1];
    106                 pp2 = &vp->idhpnt[pt2];
     105                pp1 = (int8_t *)&vp->idhpnt[pt1];
     106                pp2 = (int8_t *)&vp->idhpnt[pt2];
    107107
    108108                for (i = nmv * (int16_t)PT_SIZE; i > 0; i--)
     
    153153                        /* move points down */
    154154
    155                         pp1 = &vp->idhpnt[pt1];
    156                         pp2 = &vp->idhpnt[pt2];
     155                        pp1 = (int8_t *)&vp->idhpnt[pt1];
     156                        pp2 = (int8_t *)&vp->idhpnt[pt2];
    157157
    158158                        for (i = nmv * (int16_t)PT_SIZE; i > 0; i--)
     
    244244        for (k = 0; k < npts; k++) {            /* move things up */
    245245
    246                 fp1 = &ip->idhpnt[i--];
    247                 fp2 = &ip->idhpnt[j--];
     246                fp1 = (int8_t *)&ip->idhpnt[i--];
     247                fp2 = (int8_t *)&ip->idhpnt[j--];
    248248
    249249                for (l = 0; l < sizeof (struct instpnt); l++)
Note: See TracChangeset for help on using the changeset viewer.