We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75ba9ab commit bd07f27Copy full SHA for bd07f27
cpp/autosar/src/rules/A8-4-7/TriviallyCopyableSmallType.qll
@@ -12,7 +12,7 @@ int wordSize() { result = max(VoidPointerType v | | v.getSize()) }
12
* Converts bytes to words
13
*/
14
bindingset[bytes]
15
-float bytesToWords(float bytes) { result = bytes / wordSize() }
+int minWordsRequiredToRepresentBytes(int bytes) { result = (1.0*bytes / wordSize()).ceil() }
16
17
class TriviallyCopyableSmallType extends Type {
18
TriviallyCopyableSmallType() {
0 commit comments