Skip to content

Commit

Permalink
[core] bugfix array alloc in vec2/normal
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 25, 2015
1 parent 7321e24 commit 7b26505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geom-core/src/vector.org
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
g/PNormal
(normal
[_]
(let [^doubles b #+clj (double-array) #+cljs (js/Float32Array. 2)]
(let [^doubles b #+clj (double-array 2) #+cljs (js/Float32Array. 2)]
(aset b 0 (double (- (aget buf 1))))
(aset b 1 (double (aget buf 0)))
(Vec2. b nil _meta)))
Expand Down

0 comments on commit 7b26505

Please sign in to comment.