Fix MSVC implicit double -> float truncation warning. NFC.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user