Hi,

	I just commited LongFmt#1 patch

	and this could be #2. What do you think?

		Michal


Index: file.c
===================================================================
RCS file: /src/ruby/file.c,v
retrieving revision 1.100
diff -u -r1.100 file.c
--- file.c	2002/05/14 06:22:25	1.100
+++ file.c	2002/05/26 22:51:44
@@ -329,13 +329,13 @@
 	if (i == 2) {		/* mode */
 	    char buf[32];
 
-	    sprintf(buf, "0%o", NUM2INT(v));
+	    sprintf(buf, "0%lo", NUM2ULONG(v));
 	    rb_str_buf_cat2(str, buf);
 	}
 	else if (i == 0 || i == 6) { /* dev/rdev */
 	    char buf[32];
 
-	    sprintf(buf, "0x%x", NUM2ULONG(v));
+	    sprintf(buf, "0x%lx", NUM2ULONG(v));
 	    rb_str_buf_cat2(str, buf);
 	}
 	else {

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michal Rokos                         Czech Technical University, Prague
E-mail:m.rokos / sh.cvut.cz  ICQ:36118339  Jabber:majkl / jabber.sh.cvut.cz
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-