Euphoria Ticket #666: EUPHORIA socket routines will not accept some integer values

EUPHORIA socket routines will not accept integer values if they happen to come in passed by reference as a double. If one of the integer values is, for example 9 but for some reason is passed as a double, it will fail. Users shouldn't really be doing floating point operations on these values but in principle the number 9 is the number 9.

We should do double to integer conversion if there is no fraction part.

Details

Type: Bug Report Severity: Minor Category: Other
Assigned To: SDPringle Status: Fixed Reported Release:
Fixed in SVN #: View VCS: none Milestone: 4.0.3

1. Comment by SDPringle May 21, 2011

I have a patch for this. Now, testing.

2. Comment by mattlewis May 21, 2011

Yes, the rest of euphoria converts. We might also get a double as the result of the value having a delete_routine attached to it.

3. Comment by SDPringle May 21, 2011

This is fixed in 4e166d65fb31

4. Comment by mattlewis May 22, 2011

See: hg:euphoria/rev/b08a49da1077

changeset: 4919:b08a49da1077 branch: 4.0 user: Matt Lewis date: Sun May 22 06:56:59 2011 -0400 files: source/compile.e tests/t_if.e description:

  • add test for ticket 666

Search



Quick Links

User menu

Not signed in.

Misc Menu