Skip to content

Commit

Permalink
fixed bug affecting GLSL expressions with negative float constants
Browse files Browse the repository at this point in the history
  • Loading branch information
dktr0 committed Oct 24, 2024
1 parent 7dde560 commit 24c7642
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
60 changes: 30 additions & 30 deletions punctual.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Expr.purs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ instance Expr Float where
unaryFunction f _ (FloatConstant x) = FloatConstant (f x)
unaryFunction _ f (FloatExpr x) = FloatExpr (f x)
binaryFunction f _ (FloatConstant x) (FloatConstant y) = FloatConstant (f x y)
binaryFunction _ f x y = FloatExpr (f (toExpr x) (toExpr y))
binaryFunction _ f x y = FloatExpr (f (toExprSafe x) (toExprSafe y))
showType _ = "float"
fromFloat = identity
fromFloats = identity
Expand Down

0 comments on commit 24c7642

Please sign in to comment.