Skip to content

Commit 054ebcf

Browse files
authored
Merge pull request #1014 from jketema/jketema/rm-decimal
Floating point decimal support has been removed from CodeQL
2 parents 17b5cef + 421866e commit 054ebcf

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

c/common/src/codingstandards/c/Extensions.qll

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,7 @@ class CTerseTernaryExtension extends CCompilerExtension, ConditionalExpr {
120120
// Reference: https://gcc.gnu.org/onlinedocs/gcc/_005f_005fint128.html#g_t_005f_005fint128
121121
// Reference: https://gcc.gnu.org/onlinedocs/gcc/Decimal-Float.html#Decimal-Float
122122
class CRealTypeExtensionExtension extends CCompilerExtension, DeclarationEntry {
123-
CRealTypeExtensionExtension() {
124-
getType() instanceof Decimal128Type or
125-
getType() instanceof Decimal32Type or
126-
getType() instanceof Decimal64Type or
127-
getType() instanceof Float128Type
128-
}
123+
CRealTypeExtensionExtension() { getType() instanceof Float128Type }
129124

130125
override string getMessage() {
131126
result = "Decimal floats are a compiler extension and are not portable to other compilers."

0 commit comments

Comments
 (0)