Skip to content

Commit abede99

Browse files
authored
use long-value to avoid type cast (#195)
1 parent be11c32 commit abede99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/freedesktop/gstreamer/glib/GObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ protected abstract class GCallback {
590590
protected GCallback(NativeLong id, Callback cb) {
591591
this.id = id != null ? id : new NativeLong(0);
592592
this.cb = cb;
593-
this.connected = this.id.intValue() != 0;
593+
this.connected = this.id.longValue() != 0;
594594
}
595595

596596
void remove() {

0 commit comments

Comments
 (0)