Module Name:    src
Committed By:   mrg
Date:           Mon Apr 12 02:49:02 UTC 2021

Modified Files:
        src/sys/ddb: db_sym.c

Log Message:
avoid assigning both signed and unsigned variables in the same statement.


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/ddb/db_sym.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/ddb/db_sym.c
diff -u src/sys/ddb/db_sym.c:1.66 src/sys/ddb/db_sym.c:1.67
--- src/sys/ddb/db_sym.c:1.66	Mon Mar 30 20:45:59 2020
+++ src/sys/ddb/db_sym.c	Mon Apr 12 02:49:02 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_sym.c,v 1.66 2020/03/30 20:45:59 maya Exp $	*/
+/*	$NetBSD: db_sym.c,v 1.67 2021/04/12 02:49:02 mrg Exp $	*/
 
 /*
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_sym.c,v 1.66 2020/03/30 20:45:59 maya Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_sym.c,v 1.67 2021/04/12 02:49:02 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddbparam.h"
@@ -224,7 +224,8 @@ db_search_symbol(db_addr_t val, db_strat
 		db_expr_t newdiff;
 		db_sym_t ssym;
 
-		newdiff = diff = ~0;
+		diff = ~0u;
+		newdiff = ~0;
 		ssym = (*db_symformat->sym_search)
 		    (NULL, val, strategy, &newdiff);
 		if ((unsigned int) newdiff < diff) {

Reply via email to