mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
Fix various unsigned compare warnings.
This commit is contained in:
+6
-3
@@ -17,7 +17,7 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: draw_mux.c,v 1.6 2003/02/25 03:40:45 steve Exp $"
|
||||
#ident "$Id: draw_mux.c,v 1.7 2003/12/19 01:27:10 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "vvp_priv.h"
|
||||
@@ -124,11 +124,11 @@ static void draw_lpm_mux_bitslice(ivl_lpm_t net, unsigned slice)
|
||||
vvp_mangle_id(ivl_lpm_basename(net)), slice);
|
||||
|
||||
|
||||
if ((2 << (sel-1))/2 < size) {
|
||||
if ((2U << (sel-1))/2 < size) {
|
||||
fprintf(vvp_out, "L_%s.%s/%u/2/%u, ",
|
||||
vvp_mangle_id(ivl_scope_name(ivl_lpm_scope(net))),
|
||||
vvp_mangle_id(ivl_lpm_basename(net)),
|
||||
slice, (2 << (sel-1))/2);
|
||||
slice, (2U << (sel-1))/2);
|
||||
} else {
|
||||
fprintf(vvp_out, "C<x>, ");
|
||||
}
|
||||
@@ -185,6 +185,9 @@ void draw_lpm_mux(ivl_lpm_t net)
|
||||
|
||||
/*
|
||||
* $Log: draw_mux.c,v $
|
||||
* Revision 1.7 2003/12/19 01:27:10 steve
|
||||
* Fix various unsigned compare warnings.
|
||||
*
|
||||
* Revision 1.6 2003/02/25 03:40:45 steve
|
||||
* Eliminate use of ivl_lpm_name function.
|
||||
*
|
||||
|
||||
+5
-2
@@ -17,7 +17,7 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: eval_real.c,v 1.9 2003/05/25 02:50:08 steve Exp $"
|
||||
#ident "$Id: eval_real.c,v 1.10 2003/12/19 01:27:10 steve Exp $"
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -103,7 +103,7 @@ static int draw_binary_real(ivl_expr_t exp)
|
||||
|
||||
static int draw_number_real(ivl_expr_t exp)
|
||||
{
|
||||
int idx;
|
||||
unsigned int idx;
|
||||
int res = allocate_word();
|
||||
const char*bits = ivl_expr_bits(exp);
|
||||
unsigned wid = ivl_expr_width(exp);
|
||||
@@ -298,6 +298,9 @@ int draw_eval_real(ivl_expr_t exp)
|
||||
|
||||
/*
|
||||
* $Log: eval_real.c,v $
|
||||
* Revision 1.10 2003/12/19 01:27:10 steve
|
||||
* Fix various unsigned compare warnings.
|
||||
*
|
||||
* Revision 1.9 2003/05/25 02:50:08 steve
|
||||
* Add % in real expressions.
|
||||
*
|
||||
|
||||
+8
-5
@@ -17,7 +17,7 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
#ifdef HAVE_CVS_IDENT
|
||||
#ident "$Id: vvp_scope.c,v 1.97 2003/10/09 23:45:03 steve Exp $"
|
||||
#ident "$Id: vvp_scope.c,v 1.98 2003/12/19 01:27:10 steve Exp $"
|
||||
#endif
|
||||
|
||||
# include "vvp_priv.h"
|
||||
@@ -55,7 +55,7 @@ const char *vvp_mangle_id(const char *id)
|
||||
|
||||
do {
|
||||
int n = se - inp;
|
||||
int nlen = strlen(id) + 4*(++nesc) + 1;
|
||||
unsigned int nlen = strlen(id) + 4*(++nesc) + 1;
|
||||
if (out_len < nlen) {
|
||||
out = (char *) realloc(out, nlen);
|
||||
assert(out);
|
||||
@@ -105,7 +105,7 @@ const char *vvp_mangle_name(const char *id)
|
||||
|
||||
do {
|
||||
int n = se - inp;
|
||||
int nlen = strlen(id) + 2*(++nesc) + 1;
|
||||
unsigned int nlen = strlen(id) + 2*(++nesc) + 1;
|
||||
if (out_len < nlen) {
|
||||
out = (char *) realloc(out, nlen);
|
||||
assert(out);
|
||||
@@ -502,7 +502,7 @@ const char* draw_net_input(ivl_nexus_t nex)
|
||||
|
||||
level = 0;
|
||||
while (ndrivers) {
|
||||
int inst;
|
||||
unsigned int inst;
|
||||
for (inst = 0; inst < ndrivers; inst += 4) {
|
||||
if (ndrivers > 4)
|
||||
fprintf(vvp_out, "RS_%p/%d/%d .resolv tri",
|
||||
@@ -628,7 +628,7 @@ static void draw_delay(ivl_net_logic_t lptr)
|
||||
static void draw_udp_def(ivl_udp_t udp)
|
||||
{
|
||||
unsigned init;
|
||||
int i;
|
||||
unsigned i;
|
||||
|
||||
switch (ivl_udp_init(udp))
|
||||
{
|
||||
@@ -1658,6 +1658,9 @@ int draw_scope(ivl_scope_t net, ivl_scope_t parent)
|
||||
|
||||
/*
|
||||
* $Log: vvp_scope.c,v $
|
||||
* Revision 1.98 2003/12/19 01:27:10 steve
|
||||
* Fix various unsigned compare warnings.
|
||||
*
|
||||
* Revision 1.97 2003/10/09 23:45:03 steve
|
||||
* Emit .event inputs before the .event statement.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user