Changeset e70f6d69ecf88c4259cb3be6ee759d4ff2a03dde

Committer: realnc Author: realnc Parent: ee507d4566
Date: 7 months ago (2009/08/19 23:22)
Apply upstream-accepted patches, fixing GCC warnings and Valgrind errors

Affected files

t2compiler/tads2/dbg.c

ee507d456615ceaa597d645a5f587a88c567092ae70f6d69ecf88c4259cb3be6ee759d4ff2a03dde
206
    switch(typ)
206
    switch(typ)
207
    {
207
    {
208
    case DAT_NUMBER:
208
    case DAT_NUMBER:
209
        sprintf(buf, "%ld", osrp4(val));
209
        sprintf(buf, "%ld", (long)osrp4(val));
210
        len = strlen(buf);
210
        len = strlen(buf);
211
        break;
211
        break;
212
        
212
        

tads3/vmfilobj.cpp

ee507d456615ceaa597d645a5f587a88c567092ae70f6d69ecf88c4259cb3be6ee759d4ff2a03dde
1317
    }
1317
    }
1318
1318
1319
    /* see what we have */
1319
    /* see what we have */
1320
    switch((vm_datatype_t)buf[0])
1320
    switch(buf[0])
1321
    {
1321
    {
1322
    case VMOBJFILE_TAG_INT:
1322
    case VMOBJFILE_TAG_INT:
1323
        /* read the INT4 value */
1323
        /* read the INT4 value */

tads3/vmobj.cpp

ee507d456615ceaa597d645a5f587a88c567092ae70f6d69ecf88c4259cb3be6ee759d4ff2a03dde
1364
    {
1364
    {
1365
        /* mark the object as free so we don't try to free it later */
1365
        /* mark the object as free so we don't try to free it later */
1366
        entry->free_ = TRUE;
1366
        entry->free_ = TRUE;
1367
        entry->in_root_set_ = TRUE;
1367
        
1368
        
1368
        /* don't put the invalid object in the free list */
1369
        /* don't put the invalid object in the free list */
1369
        ++i;
1370
        ++i;