Bugs item #1074983, was opened at 2004-11-29 05:06 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1074983&group_id=31650
Category: Other Group: 0.85 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Ornus (ornus) >Assigned to: Gert Driesen (drieseng) Summary: file::get-length returns long Initial Comment: file::get-length returns a number of "long" type, where nant is oriented towards working with integer numbers of "int" type. convert::to-int work in converting "long" to "int", but it is being depreciated. ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2004-12-05 18:11 Message: Logged In: YES user_id=707851 This is now fixed in cvs. You no longer have to use a conversion function, as both relational and mathematical operations involving operands of type "long" are now supported. This will be available in the next nightly build (and in NAnt 0.85 RC2). ---------------------------------------------------------------------- Comment By: Ornus (ornus) Date: 2004-11-30 08:14 Message: Logged In: YES user_id=1057183 I'm verifying that a length of a file generated during build is close to the expected using similar code: (convert::to-int (file::get-length(file))/100)==expectedLength. The length can oscillate around expected length slightly, but I want to be able to catch large oscillations and stop the build process. If convert::to-int is removed nant refuses to execute build due to type incompatibility. ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2004-11-29 07:28 Message: Logged In: YES user_id=707851 Can you provide an example of why you're converting the long back to int ? I agree that we should have a long::to-int function though. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1074983&group_id=31650 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
