graf.c, swallow type conversion warning

This commit is contained in:
rlar 2011-06-25 17:05:29 +00:00
parent 661d287029
commit d59845b427
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2011-06-25 Robert Larice
* src/frontend/plotting/graf.c :
graf.c, swallow type conversion warning
2011-06-25 Holger Vogt
* main.c, defines.h: improved shutdown message for Windows GUI
* cpitf.c, ngspice.h, ivars.c, ivars.h, analog/file_source/cfunc.mod:

View File

@ -34,7 +34,7 @@ $Id$
/* static declarations */
static void gr_start_internal(struct dvec *dv, bool copyvec);
static int iplot(struct plot *pl, int id);
static void set(struct plot *plot, struct dbcomm *db, bool unset, int mode);
static void set(struct plot *plot, struct dbcomm *db, bool unset, short mode);
static char * getitright(char *buf, double num);
/* for legends, set in gr_start, reset in gr_iplot and gr_init */
@ -815,7 +815,7 @@ iplot(struct plot *pl, int id)
}
static void
set(struct plot *plot, struct dbcomm *db, bool unset, int mode)
set(struct plot *plot, struct dbcomm *db, bool unset, short mode)
{
struct dvec *v;
@ -824,7 +824,7 @@ set(struct plot *plot, struct dbcomm *db, bool unset, int mode)
if (db->db_type == DB_IPLOTALL || db->db_type == DB_TRACEALL) {
for (v = plot->pl_dvecs; v; v = v->v_next) {
if (unset)
v->v_flags &= ~mode;
v->v_flags &= (short) ~mode;
else
v->v_flags |= mode;
}
@ -841,7 +841,7 @@ set(struct plot *plot, struct dbcomm *db, bool unset, int mode)
continue;
}
if (unset)
v->v_flags &= ~mode;
v->v_flags &= (short) ~mode;
else
v->v_flags |= mode;
}