Skip to content

Commit 8168233

Browse files
hsbtkou
authored andcommitted
Prefer to use File.binwrite instead of IO.binwrite
1 parent 2d03df2 commit 8168233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/fiddle/win32/libffi-config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
hdr = File.binread("#{srcdir}/include/ffi.h.in")
4242
hdr.gsub!(/@(\w+)@/) {conf[$1] || $&}
4343
hdr.gsub!(/^(#if\s+)@\w+@/, '\10')
44-
IO.binwrite("#{builddir}/include/ffi.h", hdr)
44+
File.binwrite("#{builddir}/include/ffi.h", hdr)
4545

4646
mk = File.binread("#{basedir}/libffi.mk.tmpl")
4747
mk.gsub!(/@(\w+)@/) {conf[$1] || $&}
48-
IO.binwrite("Makefile", mk)
48+
File.binwrite("Makefile", mk)

0 commit comments

Comments
 (0)