File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 19
19
#include " vfvalue.h"
20
20
21
21
#include " errortypes.h"
22
+ #include " mathlib.h"
22
23
#include " token.h"
23
24
24
25
#include < sstream>
@@ -58,7 +59,7 @@ namespace ValueFlow {
58
59
ss << this ->tokvalue ->str ();
59
60
break ;
60
61
case ValueType::FLOAT:
61
- ss << this ->floatValue ;
62
+ ss << MathLib::toString ( this ->floatValue ) ;
62
63
break ;
63
64
case ValueType::MOVED:
64
65
ss << toString (this ->moveKind );
Original file line number Diff line number Diff line change @@ -3072,12 +3072,12 @@ def test_debug_valueflow(tmp_path):
3072
3072
'##Value flow' ,
3073
3073
'File {}' .format (test_file ),
3074
3074
'Line 3' ,
3075
- ' = always 2' ,
3076
- ' 1.0 always 1' ,
3077
- ' / always 2' ,
3075
+ ' = always 2.0 ' ,
3076
+ ' 1.0 always 1.0 ' ,
3077
+ ' / always 2.0 ' ,
3078
3078
' 0.5 always 0.5' ,
3079
3079
'Line 4' ,
3080
- ' d always {symbolic=(1.0/0.5),2}'
3080
+ ' d always {symbolic=(1.0/0.5),2.0 }'
3081
3081
]
3082
3082
3083
3083
You can’t perform that action at this time.
0 commit comments