Skip to content

Commit 1e92321

Browse files
authored
Merge of #396
2 parents d4a0868 + 4636afd commit 1e92321

File tree

3 files changed

+28
-13
lines changed

3 files changed

+28
-13
lines changed

.git-blame-ignore-revs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ ead57e14d463ef8e3175e933cf820220af653464
33

44
# Scala Steward: Reformat with scalafmt 3.7.17
55
0823f223e84d4329888f54a20d4b58da1dbec4dd
6+
7+
# Scala Steward: Reformat with scalafmt 3.10.1
8+
1e6e6e075deeec3a8048132e4acd8f98f663b216

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "3.10.0"
1+
version = "3.10.1"
22
runner.dialect="scala213source3"

shared/src/main/scala/com/google/protobuf/CodedInputStream.scala

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {
308308
(({
309309
x = buffer(({
310310
pos += 1; pos - 1
311-
})); x
311+
}));
312+
x
312313
})) >= 0
313314
) {
314315
bufferPos = pos
@@ -319,23 +320,26 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {
319320
(({
320321
x ^= (buffer(({
321322
pos += 1; pos - 1
322-
})) << 7); x
323+
})) << 7);
324+
x
323325
})) < 0
324326
) {
325327
x ^= (~0 << 7)
326328
} else if (
327329
(({
328330
x ^= (buffer(({
329331
pos += 1; pos - 1
330-
})) << 14); x
332+
})) << 14);
333+
x
331334
})) >= 0
332335
) {
333336
x ^= (~0 << 7) ^ (~0 << 14)
334337
} else if (
335338
(({
336339
x ^= (buffer(({
337340
pos += 1; pos - 1
338-
})) << 21); x
341+
})) << 21);
342+
x
339343
})) < 0
340344
) {
341345
x ^= (~0 << 7) ^ (~0 << 14) ^ (~0 << 21)
@@ -557,7 +561,8 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {
557561
(({
558562
y = buffer(({
559563
pos += 1; pos - 1
560-
})); y
564+
}));
565+
y
561566
})) >= 0
562567
) {
563568
bufferPos = pos
@@ -568,55 +573,62 @@ class CodedInputStream private (buffer: Array[Byte], input: InputStream) {
568573
(({
569574
y ^= (buffer(({
570575
pos += 1; pos - 1
571-
})) << 7); y
576+
})) << 7);
577+
y
572578
})) < 0
573579
) {
574580
x = y ^ (~0 << 7)
575581
} else if (
576582
(({
577583
y ^= (buffer(({
578584
pos += 1; pos - 1
579-
})) << 14); y
585+
})) << 14);
586+
y
580587
})) >= 0
581588
) {
582589
x = y ^ ((~0 << 7) ^ (~0 << 14))
583590
} else if (
584591
(({
585592
y ^= (buffer(({
586593
pos += 1; pos - 1
587-
})) << 21); y
594+
})) << 21);
595+
y
588596
})) < 0
589597
) {
590598
x = y ^ ((~0 << 7) ^ (~0 << 14) ^ (~0 << 21))
591599
} else if (
592600
(({
593601
x = (y.toLong) ^ (buffer(({
594602
pos += 1; pos - 1
595-
})).toLong << 28); x
603+
})).toLong << 28);
604+
x
596605
})) >= 0L
597606
) {
598607
x ^= (~0L << 7) ^ (~0L << 14) ^ (~0L << 21) ^ (~0L << 28)
599608
} else if (
600609
(({
601610
x ^= (buffer(({
602611
pos += 1; pos - 1
603-
})).toLong << 35); x
612+
})).toLong << 35);
613+
x
604614
})) < 0L
605615
) {
606616
x ^= (~0L << 7) ^ (~0L << 14) ^ (~0L << 21) ^ (~0L << 28) ^ (~0L << 35)
607617
} else if (
608618
(({
609619
x ^= (buffer(({
610620
pos += 1; pos - 1
611-
})).toLong << 42); x
621+
})).toLong << 42);
622+
x
612623
})) >= 0L
613624
) {
614625
x ^= (~0L << 7) ^ (~0L << 14) ^ (~0L << 21) ^ (~0L << 28) ^ (~0L << 35) ^ (~0L << 42)
615626
} else if (
616627
(({
617628
x ^= (buffer(({
618629
pos += 1; pos - 1
619-
})).toLong << 49); x
630+
})).toLong << 49);
631+
x
620632
})) < 0L
621633
) {
622634
x ^= (~0L << 7) ^ (~0L << 14) ^ (~0L << 21) ^ (~0L << 28) ^ (~0L << 35) ^ (~0L << 42) ^ (~0L << 49)

0 commit comments

Comments
 (0)