gentoo/dev-ruby/serialport/files/serialport-1.3.2-clang16-build-fix.patch
Brahmajit Das 9d47923d11
dev-ruby/serialport: Fix incompatible pointer to integer
Closes: https://bugs.gentoo.org/883127
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2023-08-12 12:01:12 +02:00

14 lines
428 B
Diff

Bug: https://bugs.gentoo.org/883127
Upstream PR: https://github.com/hparra/ruby-serialport/pull/75
--- a/ext/native/posix_serialport_impl.c
+++ b/ext/native/posix_serialport_impl.c
@@ -110,7 +110,7 @@ VALUE sp_create_impl(class, _port)
struct termios params;
NEWOBJ(sp, struct RFile);
- OBJSETUP(sp, class, T_FILE);
+ OBJSETUP((VALUE)sp, class, T_FILE);
MakeOpenFile((VALUE) sp, fp);
switch(TYPE(_port))