Skip to content

Instantly share code, notes, and snippets.

@lierdakil
Last active March 3, 2018 15:06
Show Gist options
  • Select an option

  • Save lierdakil/a86959828b6feca52676572a3156452a to your computer and use it in GitHub Desktop.

Select an option

Save lierdakil/a86959828b6feca52676572a3156452a to your computer and use it in GitHub Desktop.
diff --git a/dcraw.cc b/dcraw.cc
index 88c8068..c49d654 100644
--- a/dcraw.cc
+++ b/dcraw.cc
@@ -9242,7 +9242,7 @@ canon_a5:
if (make[0] == 'O') {
i = find_green (12, 32, 1188864, 3576832);
c = find_green (12, 32, 2383920, 2387016);
- if (abs(i) < abs(c)) {
+ if (i < c) {
SWAP(i,c);
load_flags = 24;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment