changes
diff --git a/src/libventi/dtype.c b/src/libventi/dtype.c
index 0151ba2..7886518 100644
--- a/src/libventi/dtype.c
+++ b/src/libventi/dtype.c
@@ -44,7 +44,7 @@
 };
 
 uint fromdisk[] = {
-	~0,
+	VtCorruptType,
 	VtRootType,
 	VtDirType,
 	VtDirType+1,
@@ -54,9 +54,9 @@
 	VtDirType+5,
 	VtDirType+6,
 	VtDirType+7,
-	~0,
-	~0,
-	~0,
+	VtCorruptType,
+	VtCorruptType,
+	VtCorruptType,
 	VtDataType,
 };
 
@@ -64,7 +64,7 @@
 vttodisktype(uint n)
 {
 	if(n >= nelem(todisk))
-		return ~0;
+		return VtCorruptType;
 	return todisk[n];
 }
 
@@ -72,7 +72,7 @@
 vtfromdisktype(uint n)
 {
 	if(n >= nelem(fromdisk))
-		return ~0;
+		return VtCorruptType;
 	return fromdisk[n];
 }