use priotity_enum

The _t typedef is only useful with C, not C++.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2025-04-14 13:00:56 -07:00
committed by Jari Sundell
parent 316b0b51d5
commit 25f729fab5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ apply_f_set_priority(torrent::File* file, uint32_t value) {
if (value > torrent::PRIORITY_HIGH)
throw torrent::input_error("Invalid value.");
file->set_priority((torrent::priority_t)value);
file->set_priority(static_cast<torrent::priority_enum>(value));
}
// TODO: Redundant.