[Asterisk-bugs] [Asterisk 0009508]: ast_expr2.y fails on negative real numbers
noreply at bugs.diguim.com
noreply at bugs.diguim.com
Fri Jun 29 09:01:49 CDT 2007
email_notification_title_for_action_bugnote_submitted
======================================================================
http://bugs.digium.com/view.php?id=9508
======================================================================
Reported By: marcelbarbulescu
Assigned To: murf
======================================================================
Project: Asterisk
Issue ID: 9508
Category: PBX/pbx_ael
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 60796
Disclaimer on File?: No
======================================================================
Date Submitted: 04-09-2007 12:15 CDT
Last Modified: 06-29-2007 09:01 CDT
======================================================================
Summary: ast_expr2.y fails on negative real numbers
Description:
if (-0.23 < 0) throws
ast_expr2.y:777 op_negate: non-numeric argument
======================================================================
----------------------------------------------------------------------
murf - 06-29-07 09:01
----------------------------------------------------------------------
No, not really. It parses the 0.23 as a string, and does a strcmp between
"0.23" and "0" and it wins sorta by accident.
I've got a "real" fix in the works right now. Finalized it last night.
will merge it today.
Issue History
Date Modified Username Field Change
======================================================================
06-29-07 09:01 murf Note Added: 0065904
======================================================================
More information about the Asterisk-bugs
mailing list