Hi

I found that TH1 does not catch "Divide by 0" under certain conditions
(if numerator or denominator (or both) are floating-point numbers) and
quite hangs Fossil:

  % fossil test-th-eval "expr {42/0}"
  TH_ERROR: Divide by 0: 42

  # TH1 hangs Fossil
  % fossil test-th-eval "expr {42.0/0}"
  % fossil test-th-eval "expr {42/0.0}"
  % fossil test-th-eval "expr {42.0/0.0}"

  % tclsh
  expr {42.0/0}
  Inf

Is that expected behavior that TH1 does not catch INF? More precisely to
say that TH1 takes 'Inf' literally :-) There are another minor things in
TH1 like 0/0 or 0.0/0 (-NAN), but at the least those do not hang Fossil.

Perhaps, it is not big issue, but I thought it was worth to say about.

Thanks for Fossil!

Sergei
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to