Skip to content

Commit

Permalink
Fixing common igl test about optimized memcpy.
Browse files Browse the repository at this point in the history
Summary: the memory was not being properly allocated

Reviewed By: rokuz

Differential Revision: D62127033

fbshipit-source-id: 4ea513a21a51f3cbfd3fd14dc11a0cf236729387
  • Loading branch information
francoiscoulombe authored and facebook-github-bot committed Sep 3, 2024
1 parent 3b887cc commit 84f040d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/igl/tests/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ TEST(CommonTest, ScopeGuardTest) {
TEST(CommonTest, OptimizedMemCopyTest) {
uint8_t buffer1[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32};
uint8_t buffer2[] = {0};
uint8_t buffer2[32] = {0};

optimizedMemcpy(buffer1, buffer2, 4);
ASSERT_EQ(*reinterpret_cast<uint32_t*>(buffer1), *reinterpret_cast<uint32_t*>(buffer2));
Expand Down

0 comments on commit 84f040d

Please sign in to comment.