Skip to content

Commit 77d7540

Browse files
committed
Fix usage of #write_string in OptCarrot
* The data and buffer are exactly 4096 bytes, there is no space for an extra byte.
1 parent 6f24e7c commit 77d7540

File tree

1 file changed

+1
-1
lines changed
  • bench/optcarrot/lib/optcarrot/driver

1 file changed

+1
-1
lines changed

bench/optcarrot/lib/optcarrot/driver/misc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def icon_data
105105
end
106106
dat = dat.bytes.map {|clr| palette[clr - 35] }
107107

108-
return width, height, pixels.write_string(dat.pack("V*"))
108+
return width, height, pixels.write_bytes(dat.pack("V*"))
109109
end
110110
end
111111
end

0 commit comments

Comments
 (0)