1
0
Fork 0

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:
Peter Veenstra 2018-01-31 10:21:41 +00:00
parent aa8bf6041e
commit f7ae7a1dbe
2 changed files with 6 additions and 4 deletions

View file

@ -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);