From: SourceForge.net <no...@so...> - 2006-09-26 16:33:15
|
Bugs item #1563836, was opened at 2006-09-22 18:46 Message generated for change (Comment added) made by andreas_kupries You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1563836&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 38. Package Manager Group: development: 8.5a5 Status: Open Resolution: None Priority: 5 Submitted By: Don Porter (dgp) Assigned to: Andreas Kupries (andreas_kupries) Summary: package vcompare int overflow Initial Comment: % package vcompare [expr 1<<31] [expr (1<<31)-1] -1 ---------------------------------------------------------------------- >Comment By: Andreas Kupries (andreas_kupries) Date: 2006-09-26 09:33 Message: Logged In: YES user_id=75003 Thinking about it I can agree that string compare is good enough. The only problem a strcmp would have are leading zeros, and those are disallowed in version numbers and checked for early. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2006-09-25 19:19 Message: Logged In: NO Yes. As Lars pointed out, simply doing the comparison on strings scales fine. ---------------------------------------------------------------------- Comment By: Andreas Kupries (andreas_kupries) Date: 2006-09-25 14:29 Message: Logged In: YES user_id=75003 Do we really wish to extend version numbers beyond 32 bit ? I.e. allow bignums ? Did we discuss this ? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1563836&group_id=10894 |