Branch: Tag:

2003-09-10

2003-09-10 15:21:59 by Martin Stjernholm <mast@lysator.liu.se>

Fixed various warnings and potential bugs with types of different sizes.

Rev: src/encode.c:1.197
Rev: src/gc.c:1.232
Rev: src/modules/DVB/dvb.c:1.21
Rev: src/modules/Gz/zlibmod.c:1.65
Rev: src/modules/Image/colors.c:1.66
Rev: src/modules/Image/font.c:1.81
Rev: src/modules/Mysql/dummy.c:1.13
Rev: src/modules/Parser/html.c:1.167
Rev: src/modules/Postgres/postgres.c:1.32
Rev: src/modules/_Image_GIF/image_gif.c:1.16
Rev: src/modules/_Image_JPEG/image_jpeg.c:1.63
Rev: src/modules/system/system.c:1.155
Rev: src/post_modules/GTK/pgtk.h:1.31
Rev: src/post_modules/GTK/source/global.pre:1.31
Rev: src/post_modules/GTK/source/gnomeiconselection.pre:1.3
Rev: src/post_modules/GTK/source/gtkclist.pre:1.15
Rev: src/post_modules/GTK/source/support.c:1.37
Rev: src/post_modules/SDL/SDL.cmod:1.20
Rev: src/post_modules/Shuffler/e_source_block_pikestream.c:1.3
Rev: src/program.c:1.525

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: colors.c,v 1.65 2003/01/31 02:01:46 mast Exp $ + || $Id: colors.c,v 1.66 2003/09/10 15:21:58 mast Exp $   */      /*
192:      #include "global.h"    - RCSID("$Id: colors.c,v 1.65 2003/01/31 02:01:46 mast Exp $"); + RCSID("$Id: colors.c,v 1.66 2003/09/10 15:21:58 mast Exp $");      #include "image_machine.h"   
1597:    case 3: r = p; g = q; b = v; break;    case 4: r = t; g = p; b = v; break;    case 5: r = v; g = p; b = q; break; -  default: Pike_error("internal error (hue=%d <= hsv[%f,%f,%f])\n", +  default: Pike_error("internal error (hue=%d <= hsv[%"PRINTPIKEFLOAT"f," +  "%"PRINTPIKEFLOAT"f,%"PRINTPIKEFLOAT"f])\n",    DOUBLE_TO_INT(i), h, s, v);    }    }