Fix clang-tidy issues in SQL classes#7559
Conversation
Fixes clang-tidy warning root-project#7525 that by wrongly set allocation limit size can be 0
Fixes clang-tidy warnings root-project#7525
|
Starting build on |
| } | ||
|
|
||
| if (allocsize > fgAllocSizeLimit) allocsize = fgAllocSizeLimit; | ||
| if ((fgAllocSizeLimit > 256) && (allocsize > fgAllocSizeLimit)) |
There was a problem hiding this comment.
Could add a comment (or use a constant) explaining the semantic of the 256 here?
There was a problem hiding this comment.
Values over 256 bytes used for custom data (like blob or large string).
If user changes fgAllocSizeLimit value to wrongly, this will affect only custom user data but not normal data types
Co-authored-by: Philippe Canal <[email protected]>
|
Starting build on |
|
Starting build on |
|
Build failed on mac11.0/cxx17. Errors:
|
Partially resolves #7525