Hint: "Converting the operands to DWord before doing the add could prevent overflow errors"
Bonjour,
voici le code suivant :
Code:
1 2 3 4 5 6 7
|
var
a, b, c, d: cardinal;
begin
a := buf[0]; b := buf[1]; c := buf[2]; d := buf[3];
Inc(a, cvn[0] + MD5_TRSF[0] + (d xor (b and (c xor d)))); |
Lorsque je le compile, FPC me dit :
Citation:
Hint: Converting the operands to "DWord" before doing the add could prevent overflow errors.
Je n'arrive pas à comprendre comment résoudre le problème.
Si je me souviens bien, un cardinal et un DWord, c'est la même taille et les mêmes intervalles, non ?
Comment modifier le code pour supprimer ce message ?
Merci