Something wrong with bitfieldReverse in kotlin-graphics/glm?

Answered

I get an error with the bitfieldReverse function in the glm library.

When looking into the code in https://github.com/kotlin-graphics/glm/blob/master/src/main/kotlin/glm_/func/funcInteger.kt  , it should work with an Int Argument.

I have also tested other functions (e.g. bitfieldInsert) in the same code and they work fine.

Any idea? Is the problem possibly about using the proper version of that library?

import glm_.glm.bitfieldReverse

fun main() {
    bitfieldReverse(0b1100001010)
}

0
3 comments

Hi! I reproduced the issue, but it looks like this is a problem of glm library. Please file an issue here - https://github.com/kotlin-graphics/glm/issues.

0

As I suspected in the beginning, it was about using the right library versions.

See details in https://github.com/kotlin-graphics/glm/issues/47 .

0

Please sign in to leave a comment.