mirror of
https://github.com/go-i2p/gomobile-java.git
synced 2025-06-15 13:24:30 -04:00
exp/audio/al: cleanup unnecessary casts
As a follow-up to CL/19472, I am removing the unnecessary casts. It turned out that the only call sites that will benefit from this change are the ones added in CL/19472. Sorry for the additional CL. Change-Id: Ib6bdffefad5b84beb57108a74ebcedc25b7ef7b3 Reviewed-on: https://go-review.googlesource.com/19653 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
@ -350,7 +350,7 @@ func alGetBooleanv(k int, v []bool) {
|
||||
val[i] = C.AL_FALSE
|
||||
}
|
||||
}
|
||||
C.call_alGetBooleanv(alGetBooleanvFunc, C.ALenum(k), (*C.ALboolean)(unsafe.Pointer(&val[0])))
|
||||
C.call_alGetBooleanv(alGetBooleanvFunc, C.ALenum(k), &val[0])
|
||||
}
|
||||
|
||||
func alGetString(v int) string {
|
||||
|
@ -66,7 +66,7 @@ func alGetBooleanv(k int, v []bool) {
|
||||
val[i] = C.AL_FALSE
|
||||
}
|
||||
}
|
||||
C.alGetBooleanv(C.ALenum(k), (*C.ALboolean)(unsafe.Pointer(&val[0])))
|
||||
C.alGetBooleanv(C.ALenum(k), &val[0])
|
||||
}
|
||||
|
||||
func alGetString(v int) string {
|
||||
|
Reference in New Issue
Block a user