Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 952d273

Browse files
committed
Fix windows build
MSVC does not like: sizeof(T[N]) Change-Id: If7586a0d29f609372e036fdb31481e923469a7ad Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26349 Reviewed-by: Alexis Hétu <sugoi@google.com> Tested-by: Ben Clayton <bclayton@google.com>
1 parent 2995dc2 commit 952d273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pipeline/SpirvShader.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace sw
6868

6969
Intermediate(uint32_t size) : contents(new ContentsType[size]), size(size) {
7070
#if !defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)
71-
memset(contents, 0, sizeof(ContentsType[size]));
71+
memset(contents, 0, sizeof(ContentsType) * size);
7272
#endif
7373
}
7474

0 commit comments

Comments
 (0)