Skip to content

Commit eab63c0

Browse files
CelantAVVS
authored andcommitted
fix: windows builds (#2)
Replaced 'uint' with 'uint32_t' to fix building on Windows msvs 2015
1 parent 6e3020a commit eab63c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/flakeless.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void Flakeless::Next(const Nan::FunctionCallbackInfo<v8::Value>& info) {
188188
const uint64_t base64Mask = 0x3f;
189189
char buff[12];
190190
for (int i = 10; i >= 0; --i) {
191-
uint slice = finalBits & base64Mask;
191+
uint32_t slice = finalBits & base64Mask;
192192
finalBits >>= 6;
193193
buff[i] = alpha64[slice];
194194
}
@@ -200,7 +200,7 @@ void Flakeless::Next(const Nan::FunctionCallbackInfo<v8::Value>& info) {
200200
const uint64_t base16Mask = 0xf;
201201
char buff[17];
202202
for (int i = 15; i >= 0; --i) {
203-
uint slice = finalBits & base16Mask;
203+
uint32_t slice = finalBits & base16Mask;
204204
finalBits >>= 4;
205205
buff[i] = alpha16[slice];
206206
}

0 commit comments

Comments
 (0)