Skip to content

Commit

Permalink
Switched from sizeof to ArraySize.
Browse files Browse the repository at this point in the history
  • Loading branch information
swan-amazon committed May 25, 2023
1 parent e6c9e8a commit 322c4ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/android/CHIPTool/app/src/main/cpp/native-lib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
#include <Base38.h>
#include <SetupPayload.h>
#include <jni.h>
#include <lib/support/CodeUtils.h>

// This is just a sample function to demonstrate end-to-end calling in/out of CHIP stack
// is working.
std::string base38Encode(void)
{
const uint8_t buf[] = { 0, 1, 2, 3, 4, 5 };
size_t size = sizeof(buf);
size_t size = ArraySize(buf);
return chip::base38Encode(&buf[0], size);
}

Expand Down

0 comments on commit 322c4ac

Please sign in to comment.