Created
November 10, 2014 05:44
-
-
Save Samreay/f9c519dc9bebd8e6f1cf to your computer and use it in GitHub Desktop.
Patch to image.coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/image.coffee | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- src/image.coffee (date 1390286521000) | |
+++ src/image.coffee (revision ) | |
@@ -93,7 +93,13 @@ | |
while i-- | |
value = arr[i] | |
arr[i] = swapEndian(value) | |
- | |
+ if bitpix == -64 | |
+ i = arr.length | |
+ while i-- | |
+ tmp = arr[i] | |
+ arr[i] = arr[i + 1] | |
+ arr[i + 1] = tmp | |
+ i-- | |
# Initialize a Float32 array using the same buffer | |
arr = new Float32Array(buffer) | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment