Fix MSVC implicit double -> float truncation warning. NFC.

This commit is contained in:
Simon Pilgrim
2025-07-01 08:47:58 +01:00
parent 3cc200f46b
commit 67be4fe3d5

View File

@@ -69,12 +69,12 @@ private:
"labelTy", "tokenTy", "metadataTy", "unknownTy", "function",
"pointer", "constant", "variable", "getelementptr", "invoke",
"landingpad", "resume", "catch", "cleanup"};
float EmbVal = 0.1;
float EmbVal = 0.1f;
// Helper lambda to add entries to the vocabulary
auto addEntry = [&](std::string key) {
Vocabulary[key] = ir2vec::Embedding(Dim, EmbVal);
EmbVal += 0.1;
EmbVal += 0.1f;
};
for (auto &Name : SampleEntities)