Cita:
Empezado por Lepe
El resultado es un Int64.
|
Tengo mis dudas al respecto. La ayuda de Delphi en el tema de operadores dice:
Cita:
The following rules apply to arithmetic operators.
The value of x/y is of type Extended, regardless of the types of x and y. For other arithmetic operators, the result is of type Extended whenever at least one operand is a real; otherwise, the result is of type Int64 when at least one operand is of type Int64; otherwise, the result is of type Integer. If an operand's type is a subrange of an integer type, it is treated as if it were of the integer type.
|
En la fórmula
nFileSizeHigh * MAXDWORD + nFileSizeLow
todos los operandos son integer así que creo que cae en el caso señalado. Supongo, sin probarlo, que tendría que ser algo como:
Int64(nFileSizeHigh) * MAXDWORD + nFileSizeLow
// Saludos