summaryrefslogtreecommitdiff
path: root/vala/valasemanticanalyzer.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-12-14 15:01:12 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2017-12-14 20:17:38 +0100
commitb1e95429f9247c92ca8dca621869bc9699cd2bf2 (patch)
tree05e23b248409e9e7dadeb8e357b734c7894a3648 /vala/valasemanticanalyzer.vala
parent2127e9b09ea9fd065578def3e757e0eafaaf57a7 (diff)
downloadvala-b1e95429f9247c92ca8dca621869bc9699cd2bf2.tar.gz
semanticanalyzer: Directly access local datatypes in check_print_format()
Diffstat (limited to 'vala/valasemanticanalyzer.vala')
-rw-r--r--vala/valasemanticanalyzer.vala24
1 files changed, 12 insertions, 12 deletions
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index fce226b1f..9bf704594 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -683,36 +683,36 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
if (c == 'd' || c == 'i' || c == 'c') {
// integer
if (length == -2) {
- param_type = context.analyzer.int8_type;
+ param_type = int8_type;
} else if (length == -1) {
- param_type = context.analyzer.short_type;
+ param_type = short_type;
} else if (length == 0) {
- param_type = context.analyzer.int_type;
+ param_type = int_type;
} else if (length == 1) {
- param_type = context.analyzer.long_type;
+ param_type = long_type;
} else if (length == 2) {
- param_type = context.analyzer.ssize_t_type;
+ param_type = ssize_t_type;
}
} else if (c == 'o' || c == 'u' || c == 'x' || c == 'X') {
// unsigned integer
if (length == -2) {
- param_type = context.analyzer.uchar_type;
+ param_type = uchar_type;
} else if (length == -1) {
- param_type = context.analyzer.ushort_type;
+ param_type = ushort_type;
} else if (length == 0) {
- param_type = context.analyzer.uint_type;
+ param_type = uint_type;
} else if (length == 1) {
- param_type = context.analyzer.ulong_type;
+ param_type = ulong_type;
} else if (length == 2) {
- param_type = context.analyzer.size_t_type;
+ param_type = size_t_type;
}
} else if (c == 'e' || c == 'E' || c == 'f' || c == 'F'
|| c == 'g' || c == 'G' || c == 'a' || c == 'A') {
// double
- param_type = context.analyzer.double_type;
+ param_type = double_type;
} else if (c == 's') {
// string
- param_type = context.analyzer.string_type;
+ param_type = string_type;
} else if (c == 'p') {
// pointer
param_type = new PointerType (new VoidType ());