From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id UAA02809; Mon, 14 May 2001 20:05:48 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA02790 for ; Mon, 14 May 2001 20:05:47 +0200 (MET DST) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f4EI5j506865 for ; Mon, 14 May 2001 20:05:46 +0200 (MET DST) Received: from checkerlap.d6.com ([64.163.214.51]) by mta7.pltn13.pbi.net (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0GDC003KH7HHQK@mta7.pltn13.pbi.net> for caml-list@inria.fr; Mon, 14 May 2001 11:03:21 -0700 (PDT) Date: Sat, 12 May 2001 23:24:32 -0700 From: Chris Hecker Subject: Re: [Caml-list] in_channel_length fails for files longer than max_int In-reply-to: X-Sender: def6@shell16.ba.best.com To: David Fox , caml-list@inria.fr Message-id: <4.3.2.7.2.20010512232232.00e65970@shell16.ba.best.com> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Content-type: text/plain; charset="us-ascii" References: Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >The pervasive function in_channel_length fails when the file size is >too large for an int, but it doesn't raise an exception. The code in >io.c just checks for lseek errors. Would a check for end > max_int be >worthwhile? Shouldn't all of the file size stuff be converted to int64s now anyway? Chris ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr