Skip to content

Instantly share code, notes, and snippets.

@Samreay
Created November 10, 2014 05:44
Show Gist options
  • Save Samreay/f9c519dc9bebd8e6f1cf to your computer and use it in GitHub Desktop.
Save Samreay/f9c519dc9bebd8e6f1cf to your computer and use it in GitHub Desktop.
Patch to image.coffee
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