Skip to content

Commit

Permalink
lib/sc: fix unpack on certain Lua versions
Browse files Browse the repository at this point in the history
reported by @ariutti and @v1a1l1e1
  • Loading branch information
s-ol committed Apr 12, 2020
1 parent 05df508 commit 75090be
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions core/registry.moon
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import Result from require 'core.result'
import Error from require 'core.error'

unpack or= table.unpack

class Registry
--- internals for `Tag`
-- @section internals
Expand Down
1 change: 0 additions & 1 deletion lib/midi/launchctl.moon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import ValueStream, EventStream, Op, Input, val, evt from require 'core.base'
import apply_range, bit from require 'lib.midi.core'
import bor, lshift from bit

unpack or= table.unpack
color = (r, g) -> bit.bor 12, r, (bit.lshift g, 4)

cc_seq = ValueStream.meta
Expand Down
2 changes: 2 additions & 0 deletions lib/sc.moon
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import Op, ValueStream, Input, val, evt from require 'core.base'
import pack from require 'osc'
import dns, udp from require 'socket'

unpack or= table.unpack

play = ValueStream.meta
meta:
name: 'play'
Expand Down

0 comments on commit 75090be

Please sign in to comment.