| 1 |
From: Reinhard Tartler <[email protected]> |
| 2 |
Date: Tue, 16 Jun 2026 05:53:34 -0400 |
| 3 |
Subject: Fix unaligned atomic on 32-bit platforms |
| 4 |
Description: Place 64-bit atomic integer fields first in the struct to guarantee |
| 5 |
64-bit memory alignment on 32-bit architectures (i386, armhf) and avoid panics. |
| 6 |
Forwarded: https://github.com/pb33f/libopenapi-validator/pull/289 |
| 7 |
Last-Update: 2026-06-16 |
| 8 |
--- |
| 9 |
parameters/path_parameters_test.go | 2 +- |
| 10 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 |
|
| 12 |
diff --git a/parameters/path_parameters_test.go b/parameters/path_parameters_test.go |
| 13 |
index 5972439..901b0a8 100644 |
| 14 |
--- a/parameters/path_parameters_test.go |
| 15 |
+++ b/parameters/path_parameters_test.go |
| 16 |
@@ -2249,10 +2249,10 @@ paths: |
| 17 |
} |
| 18 |
|
| 19 |
type regexCacheWatcher struct { |
| 20 |
- inner *sync.Map |
| 21 |
missCount int64 |
| 22 |
hitCount int64 |
| 23 |
storeCount int64 |
| 24 |
+ inner *sync.Map |
| 25 |
} |
| 26 |
|
| 27 |
func (c *regexCacheWatcher) Load(key any) (value any, ok bool) { |