Ticket #47973

relaxed ADV_WANT_EQ

Date d'ouverture: 2023-05-01 22:10 Dernière mise à jour: 2023-05-09 12:43

Rapporteur:
(Anonyme)
Propriétaire:
Type:
État:
Atteints
Composant:
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
2

Détails

The ADV_WANT_EQ may be too strict by comparing diff to 0.000001 (remember there are int overflows, so values may be huge)

This patch implement relative comparison |x-y| < epsilon * (|x| + |y|) , with epsilon =0.001 which is enough , and works also for big numbers.

Ticket History (3/7 Histories)

2023-05-01 22:10 Updated by: None
  • New Ticket "relaxed ADV_WANT_EQ " created
2023-05-01 22:27 Updated by: alain_bkr
Commentaire

see #47901

2023-05-02 12:31 Updated by: cazfi
2023-05-07 11:15 Updated by: cazfi
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
  • Composant Update from Server to AI
Commentaire

Patch didn't apply cleanly to S3_0. Attached version that does.

2023-05-09 12:43 Updated by: cazfi
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Attachment File List

Modifier

Please login to add comment to this ticket » Connexion