Skip to content

Commit 29ce9bf

Browse files
committed
Util: Make some predicates private
1 parent 97f7960 commit 29ce9bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared/util/codeql/util/Numbers.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private int toHex(string hex) {
104104
* Gets the value of 16 to the power of `n`. Holds only for `n` in the range
105105
* 0..7 (inclusive).
106106
*/
107-
int sixteenToThe(int n) {
107+
private int sixteenToThe(int n) {
108108
// 16**7 is the largest power of 16 that fits in an int.
109109
n in [0 .. 7] and result = 1.bitShiftLeft(4 * n)
110110
}
@@ -113,7 +113,7 @@ int sixteenToThe(int n) {
113113
* Gets the value of 8 to the power of `n`. Holds only for `n` in the range
114114
* 0..10 (inclusive).
115115
*/
116-
int eightToThe(int n) {
116+
private int eightToThe(int n) {
117117
// 8**10 is the largest power of 8 that fits in an int.
118118
n in [0 .. 10] and result = 1.bitShiftLeft(3 * n)
119119
}
@@ -122,7 +122,7 @@ int eightToThe(int n) {
122122
* Gets the value of 2 to the power of `n`. Holds only for `n` in the range
123123
* 0..30 (inclusive).
124124
*/
125-
int twoToThe(int n) { n in [0 .. 30] and result = 1.bitShiftLeft(n) }
125+
private int twoToThe(int n) { n in [0 .. 30] and result = 1.bitShiftLeft(n) }
126126

127127
/** Gets `s` with any leading "0" characters removed. */
128128
bindingset[s]

0 commit comments

Comments
 (0)