Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Make some constants explicitly unsigned
Matthew Seaman committed 13 years ago
commit 41c8593271db98f0662e7b036b85e88bdb8df5ff
parent 6f3c8e5
2 files changed +3 -3
modified pkg/set.c
@@ -35,8 +35,8 @@

#include "pkgcli.h"

-
#define AUTOMATIC 1<<0
-
#define ORIGIN 1<<1
+
#define AUTOMATIC 1U<<0
+
#define ORIGIN 1U<<1

void
usage_set(void)
modified pkg/utils.c
@@ -243,7 +243,7 @@ print_info(struct pkg * const pkg, unsigned int options)
	   style to show on a new line.  */

	info_num = 0;
-
	for (opt = 0x1; opt <= INFO_LASTFIELD; opt <<= 1) 
+
	for (opt = 0x1U; opt <= INFO_LASTFIELD; opt <<= 1) 
		if ((opt & options) != 0)
			info_num++;