Skip to content

Commit

Permalink
narrowing warning fixed
Browse files Browse the repository at this point in the history
added cast to filename.length() to remove warning
  • Loading branch information
jmasucci committed Dec 23, 2013
1 parent c02c9d8 commit 97d27aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils/kernelAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void
KernelAPI::DumpKernelMetrics(DumpFilename filename)
{
int rc;
struct nvme_file dumpMe = { filename.length(), filename.c_str() };
struct nvme_file dumpMe = { (short unsigned int)filename.length(), filename.c_str() };

LOG_NRM("Dump dnvme metrics to filename: %s", filename.c_str());
if ((rc = ioctl(gDutFd, NVME_IOCTL_DUMP_METRICS, &dumpMe)) < 0)
Expand Down

0 comments on commit 97d27aa

Please sign in to comment.