Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> Edwin Leuven wrote:
Abdelrazak Younes wrote:
do we need to cast lyx::time_type to ... ?
No, the difference:
sure, but that will have the same type no?
Abdelrazak> no, we need an explicit int (not unsigned long) because
Abdelrazak> MSVC doesn't know how to choose between the different abs
Abdelrazak> version (the one in math.h requires a double).
But are we sure that int is a wide enough type?
For a time difference I think so yes. But we can do cast to double and
use the math.h version if you are affraid of that. Or we can even
implement our own template based abs().
On x86 (not sure about the AMD 64 bit extension) long and int are both
64 bits anyway.
Abdel.