Skip to content

Commit 2a808f2

Browse files
committed
Formatting change and correction to tolower function.
1 parent 7825921 commit 2a808f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sycl/plugins/level_zero/usm_allocator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <array>
1111
#include <bitset>
1212
#include <cassert>
13+
#include <cctype>
1314
#include <iomanip>
1415
#include <iostream>
1516
#include <list>
@@ -150,15 +151,15 @@ static class SetLimits {
150151

151152
auto GetValue = [](std::string &Param, size_t Length) {
152153
size_t Multiplier = 1;
153-
if (std::tolower(Param[Length - 1]) == 'k') {
154+
if (tolower(Param[Length - 1]) == 'k') {
154155
Length--;
155156
Multiplier = 1024;
156157
}
157-
if (std::tolower(Param[Length - 1]) == 'm') {
158+
if (tolower(Param[Length - 1]) == 'm') {
158159
Length--;
159160
Multiplier = 1024 * 1024;
160161
}
161-
if (std::tolower(Param[Length - 1]) == 'g') {
162+
if (tolower(Param[Length - 1]) == 'g') {
162163
Length--;
163164
Multiplier = 1024 * 1024 * 1024;
164165
}
@@ -307,7 +308,6 @@ static class SetLimits {
307308
} USMSettings;
308309
} // namespace settings
309310

310-
311311
using namespace settings;
312312

313313
static const char *MemTypeNames[3] = {"Host", "Device", "Shared"};

0 commit comments

Comments
 (0)