Skip to content

Commit 88973b7

Browse files
added line spacings
1 parent 80eee20 commit 88973b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PyBytesProxyHandler.cc

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static bool array_valueOf(JSContext *cx, unsigned argc, JS::Value *vp) {
3434
bool isSharedMemory;
3535
JS::AutoCheckCannotGC autoNoGC(cx);
3636
uint8_t *data = JS::GetArrayBufferData(rootedArrayBuffer, &isSharedMemory, autoNoGC);
37+
3738
size_t numberOfDigits = 0;
3839
for (size_t i = 0; i < byteLength; i++) {
3940
numberOfDigits += data[i] < 10 ? 1 : data[i] < 100 ? 2 : 3;
@@ -44,6 +45,7 @@ static bool array_valueOf(JSContext *cx, unsigned argc, JS::Value *vp) {
4445
size_t charIndex = 0;
4546
sprintf((char*)&buffer[charIndex], "%d", data[0]);
4647
charIndex += data[0] < 10 ? 1 : data[0] < 100 ? 2 : 3;
48+
4749
for (size_t dataIndex = 1; dataIndex < byteLength; dataIndex++) {
4850
buffer[charIndex] = ',';
4951
charIndex++;

0 commit comments

Comments
 (0)