Skip to content

Commit

Permalink
fix(core): Pacify a widening warning in ua_securechannel_crypto.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Nov 6, 2024
1 parent d77bcd1 commit 249c365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ua_securechannel_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ padChunk(UA_SecureChannel *channel, const UA_SecurityPolicyCryptoModule *cm,
/* Write the padding. This is <= because the paddingSize byte also has to be
* written */
UA_Byte paddingByte = (UA_Byte)paddingLength;
for(UA_UInt16 i = 0; i <= paddingLength; ++i) {
for(size_t i = 0; i <= paddingLength; ++i) {
**pos = paddingByte;
++*pos;
}
Expand Down

0 comments on commit 249c365

Please sign in to comment.