Fabrice La Active Member Licensed User Longtime User Oct 1, 2013 #1 Since I compile my application I have this error : Code: Copy Dim Longy as Double Longy = 15.2 Dim pas As Int If Longy < 10 Then pas = 2 If Longy < 20 Then pas = 3 If Longy < 30 Then pas = 5 If Longy > 30 Then pas = 5 For i = 0 To Round(Longy) Step pas 'ERROR .... Compiling debugger engine code. Error B4A line: 1827 For i = 0 To Round(Longy) Step pas javac 1.7.0_25 \pro\main_subs_0.java:1131: error: possible loss of precision final int step1672 = (double) (_pas.<Integer>get().intValue()); ^ required: int found: double 1 error In Basic4Android 2.71 there is no error ....
Since I compile my application I have this error : Code: Copy Dim Longy as Double Longy = 15.2 Dim pas As Int If Longy < 10 Then pas = 2 If Longy < 20 Then pas = 3 If Longy < 30 Then pas = 5 If Longy > 30 Then pas = 5 For i = 0 To Round(Longy) Step pas 'ERROR .... Compiling debugger engine code. Error B4A line: 1827 For i = 0 To Round(Longy) Step pas javac 1.7.0_25 \pro\main_subs_0.java:1131: error: possible loss of precision final int step1672 = (double) (_pas.<Integer>get().intValue()); ^ required: int found: double 1 error In Basic4Android 2.71 there is no error ....
Erel B4X founder Staff member Licensed User Longtime User Oct 1, 2013 #2 Thank you. It is fixed for the next beta. Upvote 0