Commit a5693318 authored by Crunkle's avatar Crunkle

Fix narrowing conversion

parent 0ac813d9
...@@ -1514,7 +1514,7 @@ public: ...@@ -1514,7 +1514,7 @@ public:
Vector<Entry> results; Vector<Entry> results;
for (uint i = 0; i < 26; i++) { for (uint i = 0; i < 26; i++) {
if (drives & (1 << i)) { if (drives & (1 << i)) {
char name[2] = { 'A' + i, ':' }; char name[2] = { static_cast<char>('A' + i), ':' };
results.add(Entry { FsNode::Type::DIRECTORY, kj::heapString(name, 2) }); results.add(Entry { FsNode::Type::DIRECTORY, kj::heapString(name, 2) });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment