Fix narrowing warnings (errors on clang/freebsd) and an unhandled value in switch. (Part of patch #275 from strageqargo)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4072
This commit is contained in:
parent
aa8bf6041e
commit
f7ae7a1dbe
2 changed files with 6 additions and 4 deletions
|
@ -75,7 +75,7 @@ public:
|
|||
for (int d = 0;d < DOS_DRIVES;d++) {
|
||||
if (!Drives[d]) continue;
|
||||
|
||||
char root[7] = {'A'+d,':','\\','*','.','*',0};
|
||||
char root[7] = {static_cast<char>('A'+d),':','\\','*','.','*',0};
|
||||
bool ret = DOS_FindFirst(root,DOS_ATTR_VOLUME);
|
||||
if (ret) {
|
||||
dta.GetResult(name,size,date,time,attr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue