summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2011-05-31 20:59:53 +0000
committerAttilio Rao <attilio@FreeBSD.org>2011-05-31 20:59:53 +0000
commit1de471dfee9267dde6b33dd262faefffb2b71bc9 (patch)
tree06681751e5fd13fb55ccf18887a4b898bf4dcdb0 /gnu
parente3709597073142661441c7761240c07d081f4388 (diff)
downloadsrc-test-1de471dfee9267dde6b33dd262faefffb2b71bc9.tar.gz
src-test-1de471dfee9267dde6b33dd262faefffb2b71bc9.zip
Notes
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gdb/kgdb/kthr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/kthr.c b/gnu/usr.bin/gdb/kgdb/kthr.c
index 7b39929fa55ae..461f408a73d9a 100644
--- a/gnu/usr.bin/gdb/kgdb/kthr.c
+++ b/gnu/usr.bin/gdb/kgdb/kthr.c
@@ -107,7 +107,7 @@ kgdb_thr_init(void)
addr = kgdb_lookup("stopped_cpus");
CPU_ZERO(&stopped_cpus);
cpusetsize = sysconf(_SC_CPUSET_SIZE);
- if (cpusetsize != -1 && (size_t)cpusetsize <= sizeof(cpuset_t) &&
+ if (cpusetsize != -1 && (u_long)cpusetsize <= sizeof(cpuset_t) &&
addr != 0)
kvm_read(kvm, addr, &stopped_cpus, cpusetsize);