Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Work around gcc's sillyness #LD48

  • Loading branch information...
commit 2ed80e0d2dabb84b3bd12e2de15360dfae75a13f 1 parent 7190ab8
@nddrylliog authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 source/gtk/_GObject.ooc
View
8 source/gtk/_GObject.ooc
@@ -66,9 +66,11 @@ keyEventsThunk: func (userData: Closure*, event: Pointer, object: _GObject) -> B
}
nakedThunk: func (userData: Closure*, object: _GObject, event: Pointer) -> Bool {
- realFunc := userData@ as Func (Pointer)
- data := realFunc as Closure context
- realFunc as Closure context = event
+ closure := userData@ as Closure
+ data := closure context
+ closure context = event
+
+ realFunc := closure as Func (Pointer)
realFunc(data)
}
Please sign in to comment.
Something went wrong with that request. Please try again.