commit 86c24ae00219f289b4465297dcbb128e81f42a02 from: Benjamin Stürz date: Wed Jul 31 12:36:32 2024 UTC bedstatus/linux: bat(): use unsigned long commit - 5d0f80b90f526ff1340d4d077710362ac0d14409 commit + 86c24ae00219f289b4465297dcbb128e81f42a02 blob - 12a15e5b876d8f40b3905211e551b181e836dea1 blob + 8d2f4905068882179266f3531067cd1fc13509ae --- bedstatus/linux.c +++ bedstatus/linux.c @@ -181,7 +181,7 @@ static char *bat_read (const struct bat *bat, const ch static void bat (struct status *st) { - unsigned nowsum = 0, fullsum = 0; + unsigned long nowsum = 0, fullsum = 0; st->has_bat_charging = false; for (int i = 0; i < nbat; ++i) {