I’m converting a code from C to Delphi, but I’m stuck on the last line of this code:
BOOL is_match = FALSE;
unsigned int temp_val;
unsigned int prev_val = 0;
is_match = (temp_val == val);
I can only convert this much:
var
is_match: boolean;
temp_val: cardinal;
prev_val: cardinal;
begin
is_match := false;
prev_val := 0;
is_match := ????
end;
How do I fill in the last assignment?
is_match := temp_val = val;At any rate, I hope the code above is just a small excerpt of the real code, because
temp_valis undefined at the time you compare it withval.