Module Name:    src
Committed By:   yamt
Date:           Fri May 22 11:38:05 UTC 2009

Modified Files:
        src/common/lib/libc/gen: rpst.c

Log Message:
rpst_insert_node1: fix an inverted condition.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/common/lib/libc/gen/rpst.c

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

Modified files:

Index: src/common/lib/libc/gen/rpst.c
diff -u src/common/lib/libc/gen/rpst.c:1.2 src/common/lib/libc/gen/rpst.c:1.3
--- src/common/lib/libc/gen/rpst.c:1.2	Wed May 20 10:56:29 2009
+++ src/common/lib/libc/gen/rpst.c	Fri May 22 11:38:05 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: rpst.c,v 1.2 2009/05/20 10:56:29 yamt Exp $	*/
+/*	$NetBSD: rpst.c,v 1.3 2009/05/22 11:38:05 yamt Exp $	*/
 
 /*-
  * Copyright (c)2009 YAMAMOTO Takashi,
@@ -43,10 +43,10 @@
 #include <sys/cdefs.h>
 
 #if defined(_KERNEL)
-__KERNEL_RCSID(0, "$NetBSD: rpst.c,v 1.2 2009/05/20 10:56:29 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpst.c,v 1.3 2009/05/22 11:38:05 yamt Exp $");
 #include <sys/param.h>
 #else /* defined(_KERNEL) */
-__RCSID("$NetBSD: rpst.c,v 1.2 2009/05/20 10:56:29 yamt Exp $");
+__RCSID("$NetBSD: rpst.c,v 1.3 2009/05/22 11:38:05 yamt Exp $");
 #include <assert.h>
 #include <stdbool.h>
 #include <string.h>
@@ -168,7 +168,7 @@
 		*where = n;
 		return NULL;
 	}
-	if (n->n_y == cur->n_y && n->n_x != cur->n_x) {
+	if (n->n_y == cur->n_y && n->n_x == cur->n_x) {
 		return cur;
 	}
 	if (n->n_y < cur->n_y) {

Reply via email to