Commit 67addef
authored
Fixed 64-bit alignment panic in chunkedContentCoder on 32-bit platforms. (#148)
Following the fix in #147, a 'panic: unaligned 64-bit atomic operation' is
still occurring on some platforms.
As noted in #147, this commit implements the alternative fix by placing the
bytesWritten field at the top of the struct. Per the Golang sync/atomic
documentation, on ARM, 386 and 32-bit MIPS systems, this is the reliable
way to prevent these issues.
Signed-off-by: Callum Jones <[email protected]>1 parent e34dce0 commit 67addef
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments