[PATCH 2/7] buffer: Promote to unsigned long long before shifting