From: Colin P. A. <co...@co...> - 2007-12-28 20:45:48
|
>>>>> "Eric" == Eric Bezault <er...@go...> writes: Eric> Another solution is that you write: Eric> ~~~~~~~~~~~~~~~ if local_comparer.less_than (atomic_value, Eric> second_atomic_value) then atomic_value := Eric> second_atomic_value end ~~~~~~~~~~~~~~~ Eric> instead of: Eric> ~~~~~~~~~~~~~~~ if local_comparer.less_equal Eric> (second_atomic_value, atomic_value) then atomic_value := Eric> second_atomic_value end ~~~~~~~~~~~~~~~ Eric> in XM_XPATH_MINIMAX_ROUTINES.establish_next_primitive_type. I adopted that approach (after adding the missing not). I have left the exception in to avoid the unnecessary quadratic behaviour (quick sort is supposed to be nlogn on average), as the situation only occurs for a fatal error code, so it is not too big a deal that I get a crash instead temporarily (anyone who objects can compile with ISE). -- Colin Adams Preston Lancashire |