if (new_diroff == 65535)

Borland C++ complains here. Change the constant to 65535UL (see patch below).

Although Borland says "constant is long", it's enough to change it to 65535U, not UL.


Lucho

diff -ruN cvs/kernel/kernel/fatdir.c src/kernel/kernel/fatdir.c
--- cvs/kernel/kernel/fatdir.c  2004-03-22 14:45:54.000000000 +0200
+++ src/kernel/kernel/fatdir.c  2004-03-22 14:49:00.000000000 +0200
@@ -213,7 +213,7 @@
   unsigned new_diroff = fnp->f_diroff;

   /* can't have more than 65535 directory entries */
-  if (new_diroff == 65535)
+  if (new_diroff == 65535U)
     return DE_SEEK;

/* Directories need to point to their current offset, not for */


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to