Skip to content

Commit 11edbe6

Browse files
committed
Try to fix win build warning
1 parent a2bac81 commit 11edbe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cpp/models/include/models/results.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ struct ClassificationResult : public ResultBase {
130130
}
131131

132132
struct Classification {
133-
unsigned int id;
133+
size_t id;
134134
std::string label;
135135
float score;
136136

137-
Classification(unsigned int id, const std::string& label, float score) : id(id), label(label), score(score) {}
137+
Classification(size_t id, const std::string& label, float score) : id(id), label(label), score(score) {}
138138

139139
friend std::ostream& operator<<(std::ostream& os, const Classification& prediction) {
140140
return os << prediction.id << " (" << prediction.label << "): " << std::fixed << std::setprecision(3)

0 commit comments

Comments
 (0)