Skip to content

Commit

Permalink
use ssize_t for count
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Oct 10, 2024
1 parent d3d71fa commit e943fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hal/src/main/native/athena/LEDs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static bool ReadStateFromFile(fs::path path, int32_t* status) {
}
// We only need to read one byte because the file won't have leading zeros.
char buf[1]{};
size_t count = read(file, buf, 1);
ssize_t count = read(file, buf, 1);
// save errno, always close file.
int err = errno;
fs::CloseFile(file);
Expand Down

0 comments on commit e943fe4

Please sign in to comment.