Skip to content

Commit e24f46f

Browse files
committed
swap lock size to bytes
1 parent a4fc911 commit e24f46f

File tree

1 file changed

+3
-3
lines changed
  • stdlib/public/Reflection/Sources/_Runtime/Utils

1 file changed

+3
-3
lines changed

stdlib/public/Reflection/Sources/_Runtime/Utils/Lock.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ using namespace swift;
1717

1818
extern "C" SWIFT_CC(swift)
1919
size_t _swift_reflection_lock_size() {
20-
size_t words = sizeof(Mutex) / sizeof(void *);
20+
size_t bytes = sizeof(Mutex);
2121

22-
if (words < 1) {
22+
if (bytes < 1) {
2323
return 1;
2424
}
2525

26-
return words;
26+
return bytes;
2727
}
2828

2929
extern "C" SWIFT_CC(swift)

0 commit comments

Comments
 (0)