Skip to content

Commit

Permalink
Fix harmless compiler warning in the vfstrace extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
D. Richard Hipp committed Sep 19, 2024
1 parent d96d622 commit 0d07232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/misc/vfstrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ static const char *lockName(int eLock){
const char *azLockNames[] = {
"NONE", "SHARED", "RESERVED", "PENDING", "EXCLUSIVE"
};
if( eLock<0 || eLock>=sizeof(azLockNames)/sizeof(azLockNames[0]) ){
if( eLock<0 || eLock>=(int)(sizeof(azLockNames)/sizeof(azLockNames[0])) ){
return "???";
}else{
return azLockNames[eLock];
Expand Down

0 comments on commit 0d07232

Please sign in to comment.