We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e3020a commit eab63c0Copy full SHA for eab63c0
1 file changed
src/flakeless.cc
@@ -188,7 +188,7 @@ void Flakeless::Next(const Nan::FunctionCallbackInfo<v8::Value>& info) {
188
const uint64_t base64Mask = 0x3f;
189
char buff[12];
190
for (int i = 10; i >= 0; --i) {
191
- uint slice = finalBits & base64Mask;
+ uint32_t slice = finalBits & base64Mask;
192
finalBits >>= 6;
193
buff[i] = alpha64[slice];
194
}
@@ -200,7 +200,7 @@ void Flakeless::Next(const Nan::FunctionCallbackInfo<v8::Value>& info) {
200
const uint64_t base16Mask = 0xf;
201
char buff[17];
202
for (int i = 15; i >= 0; --i) {
203
- uint slice = finalBits & base16Mask;
+ uint32_t slice = finalBits & base16Mask;
204
finalBits >>= 4;
205
buff[i] = alpha16[slice];
206
0 commit comments