Branch: Tag:

2006-07-06

2006-07-06 16:07:31 by Marcus Comstedt <marcus@mc.pp.se>

Fixed some pointer signedness warnings.

Rev: src/pike_types.c:1.256

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_types.c,v 1.255 2006/07/05 19:28:10 mast Exp $ + || $Id: pike_types.c,v 1.256 2006/07/06 16:07:31 marcus Exp $   */      #include "global.h"
1186:    is = 1;    ++*s;    } else { -  if (strncmp(*s, "mplements ", 10)) { +  if (strncmp((const char *)*s, "mplements ", 10)) {    goto bad_type;    }    *s += 10;
1195:    no_is_implements:    if( !**s )    goto bad_type; -  if (!strncmp(*s, "this_program", 12)) { +  if (!strncmp((const char *)*s, "this_program", 12)) {    id = Pike_compiler->new_program->id;    *s += 12;    } else { -  id = atoi( *s ); +  id = atoi( (const char *)*s );    while( **s >= '0' && **s <= '9' )    ++*s;    }
4791:    case T_INT:    *cont = type_string + 9; /* 2*sizeof(INT32) + 1 */    return mk_type(T_INT, -  (void *)(ptrdiff_t)extract_type_int(type_string+1), -  (void *)(ptrdiff_t)extract_type_int(type_string+5), 0); +  (void *)(ptrdiff_t)extract_type_int((char *)type_string+1), +  (void *)(ptrdiff_t)extract_type_int((char *)type_string+5), 0);       case PIKE_T_INT_UNTYPED:    *cont = type_string + 1;
4803:    case T_OBJECT:    *cont = type_string + 6; /* 1 + sizeof(INT32) + 1 */    return mk_type(T_OBJECT, (void *)(ptrdiff_t)(type_string[1]), -  (void *)(ptrdiff_t)extract_type_int(type_string+2), 0); +  (void *)(ptrdiff_t)extract_type_int((char *)type_string+2), 0);    case PIKE_T_NAME:    {    int size_shift = type_string[1] & 0x3;
4817:    */    switch(type_string[1]) {    case 0: case 4: -  bytes = strlen(type_string+2); +  bytes = strlen((char *)type_string+2);    break;    case 1:    for(bytes=0; ; bytes+=2)