Skip to content

Instantly share code, notes, and snippets.

@domgetter
Created January 7, 2019 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domgetter/3506aab2246168890b5522a7c900a20c to your computer and use it in GitHub Desktop.
Save domgetter/3506aab2246168890b5522a7c900a20c to your computer and use it in GitHub Desktop.
in src/sdl_test.cr:1123: no overload matches 'String.new' with type Pointer(UInt8)
Overloads are:
- String.new(bytes : Bytes, encoding : String, invalid : Symbol | ::Nil = nil)
- String.new(chars : ::Pointer(UInt8), bytesize, size = 0)
- String.new(slice : Bytes)
- String.new(chars : ::Pointer(UInt8))
- String.new(capacity : Int, &block)
- Reference.new()
info_log = String.new(info_log_length.as(::Pointer(UInt8))) do |buffer|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment