Skip to content

glm::mod() behaves differently for int and float with negative values #308

Closed
@sponji

Description

@sponji

Seems like glm::mod<int>() gives wrong results for negative values. For example, glm::mod<int>(-1, 10) gives -1, but glm::mod<float>(-1.0f, 10.0f) gives 9.0f.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions