View Issue Details

IDProjectCategoryView StatusLast Update
0000905Ecere SDKcompilerpublic2016-09-22 05:27
Reporterjerome Assigned Tojerome  
PriorityimmediateSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Product Version0.44.07 
Target Version0.44.16 
Summary0000905: Min & Max do not take into consideration both operand types
DescriptionIf value is a float:

Min(Max(0,value),1)

An int is used to store the result and the float is lost (also the name of the variable is 'simpleStruct', fix that!).
TagsNo tags attached.

Activities

jerome

2014-02-13 22:52

administrator   ~0001184

Additionally:

Min(Max(euler.pitch, Degrees { -89.9 }), Degrees { 89.9 })

This works whereas:

Min(Max(euler.pitch, -89.9), 89.9)

This treats +/-89.9 as radians.

jerome

2016-09-22 05:27

administrator   ~0001443

Also seems related (especially simpleStruct change) to bug found in notes using both Min and Max inside a switch case's statement without curly brackets.

Issue History

Date Modified Username Field Change
2013-05-16 13:46 jerome New Issue
2013-05-22 21:03 jerome Status new => assigned
2013-05-22 21:03 jerome Assigned To => jerome
2013-08-16 18:50 jerome Target Version 0.44.10 64 => 0.44.09
2013-08-25 19:26 jerome Target Version 0.44.09 => 0.44.10 64
2014-02-13 22:52 jerome Note Added: 0001184
2016-04-19 05:29 jerome Target Version 0.44.12 Fixes => 0.46 eC II
2016-09-22 05:27 jerome Note Added: 0001443
2016-09-22 05:27 jerome Reproducibility have not tried => always
2016-09-22 05:27 jerome Target Version 0.46 eC II => 0.44.16