LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

__int64 constant optimisation bug again...

Using LabWindows/CVI 8.1.1, when computing time values stored in __int64 variables, i once again went into a problem, where part of an expression is simply ignored:
duration % (1*HOUR) / (1*MINUTE) yields the same result as duration / (1*MINUTE)...

You will find a file in attachment which reproduces the problem. Here is the output of the execution:

duration is 22:1351
duration is 1351 minutes, the modulo in the previous expression is ignored
adding parenthesis does not change anything: 22:1351
the only way to get a good result is removing the constant 1: 22:31


When will we have a reliable compiler regarding 64 bit computations ?
0 Kudos
Message 1 of 2
(2,934 Views)
It appears that the cause of this problem was the same as for the previous __int64 issue you reported.  Rest assured, both symptoms will be gone in the upcoming release of CVI.

Mert A.
National Instruments
0 Kudos
Message 2 of 2
(2,925 Views)