Browse Source

Fix order of parameters of FillChar as suggested by Alexey Torgashin

Pierre Muller 2 years ago
parent
commit
fad52c62ed
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/hermes/src/hermes_converter.inc

+ 2 - 2
packages/hermes/src/hermes_converter.inc

@@ -45,8 +45,8 @@ begin
   newinstance^.dither := nil;
   newinstance^.ditherstretch := nil;
   newinstance^.flags := flags;
-  FillChar(newinstance^.source, 0, SizeOf(THermesFormat));
-  FillChar(newinstance^.dest, 0, SizeOf(THermesFormat));
+  FillChar(newinstance^.source, SizeOf(THermesFormat), 0);
+  FillChar(newinstance^.dest, SizeOf(THermesFormat), 0);
 
   Result := THermesConverterHandle(newinstance);
 end;