Skip to content

Commit dc93cfe

Browse files
committed
Adjust memcpy signature to use values (not references)
1 parent 2c9ab0f commit dc93cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ public static function addr(CData $variable): CData
298298
* @param mixed $source
299299
* @param int $size
300300
*/
301-
public static function memcpy(CData &$target, &$source, int $size): void
301+
public static function memcpy(CData $target, $source, int $size): void
302302
{
303303
FFI::memcpy($target, $source, $size);
304304
}

0 commit comments

Comments
 (0)