about summary refs log tree commit diff
path: root/lib/util/intcode.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/intcode.h')
-rw-r--r--lib/util/intcode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/intcode.h b/lib/util/intcode.h
index 155e47e1..0ee70932 100644
--- a/lib/util/intcode.h
+++ b/lib/util/intcode.h
@@ -118,8 +118,8 @@ pm_uintFromBigend16(bigend16 const arg) {
     }; break;
     case LITTLE_ENDIAN: {
         retval =
-            (arg.bytes[0] << 16) |
-            (arg.bytes[1] <<  8);
+            (arg.bytes[0] << 8) |
+            (arg.bytes[1] << 0);
     } break;
     }
     return retval;