We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91e69e2 commit 9e89ddaCopy full SHA for 9e89dda
libraries/SDFS/src/SDFS.h
@@ -101,8 +101,8 @@ class SDFSImpl : public FSImpl {
101
info.blockSize = _fs.vol()->bytesPerCluster();
102
info.pageSize = 0; // TODO ?
103
info.maxPathLength = 255; // TODO ?
104
- info.totalBytes = _fs.vol()->clusterCount() * info.blockSize;
105
- info.usedBytes = info.totalBytes - (_fs.vol()->freeClusterCount() * _fs.vol()->bytesPerCluster());
+ info.totalBytes = (uint64_t)_fs.vol()->clusterCount() * (uint64_t)info.blockSize;
+ info.usedBytes = info.totalBytes - ((uint64_t)_fs.vol()->freeClusterCount() * (uint64_t)_fs.vol()->bytesPerCluster());
106
return true;
107
}
108
0 commit comments