Skip to content

Commit be8151e

Browse files
committed
Warnings
1 parent 54e2362 commit be8151e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/common/CvtFormat.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ namespace
141141
InitInstance<TimeZoneTrie> timeZoneTrie;
142142

143143

144-
#define CVT_FORMAT(id, format) constexpr Patterns format = 1llu << id - 1;
145-
#define CVT_FORMAT2(id, format1, format2) constexpr Patterns format2 = 1llu << id - 1;
146-
#define CVT_FORMAT_FLAG(id, format) constexpr Patterns format = 1llu << id - 1;
144+
#define CVT_FORMAT(id, format) constexpr Patterns format = 1llu << (id - 1);
145+
#define CVT_FORMAT2(id, format1, format2) constexpr Patterns format2 = 1llu << (id - 1);
146+
#define CVT_FORMAT_FLAG(id, format) constexpr Patterns format = 1llu << (id - 1);
147147
namespace Format
148148
{
149149
typedef FB_UINT64 Patterns;
@@ -343,7 +343,7 @@ namespace
343343
if (number < 1 || number > 9)
344344
return Format::NONE;
345345

346-
return Format::FF1 << number - 1;
346+
return Format::FF1 << (number - 1);
347347
}
348348
break;
349349

src/common/classes/Uuid.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Uuid
8686
private:
8787
void generateV4()
8888
{
89-
GenerateRandomBytes(bytes.data(), bytes.size());
89+
GenerateRandomBytes(bytes.data(), static_cast<FB_SIZE_T>(bytes.size()));
9090

9191
// version and variant
9292
bytes[6] = (bytes[6] & 0x0F) | 0x40;
@@ -95,7 +95,7 @@ class Uuid
9595

9696
void generateV7()
9797
{
98-
GenerateRandomBytes(bytes.data() + 6, bytes.size() - 6);
98+
GenerateRandomBytes(bytes.data() + 6, static_cast<FB_SIZE_T>(bytes.size()) - 6);
9999

100100
// current timestamp in ms
101101
const auto now = std::chrono::system_clock::now();

0 commit comments

Comments
 (0)