summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-06-20 14:10:36 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-06-24 16:30:34 +0100
commita0a2044e3431cd16c1804d33bacaf414e62396a2 (patch)
treeeb2345ccbcc32c4abbb4587c43c61e3139aa2d6b /cli
parent9f580dbb64839281c74cb68b6872370d0756af20 (diff)
cli/pickle: Pass across tuples/lists consistently.
Diffstat (limited to 'cli')
-rw-r--r--cli/cli_pickle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/cli_pickle.cpp b/cli/cli_pickle.cpp
index 6d368028..04aec1b2 100644
--- a/cli/cli_pickle.cpp
+++ b/cli/cli_pickle.cpp
@@ -98,7 +98,7 @@ public:
if (symbolic) {
unsigned long long value = node->value;
const BitmaskSig *sig = node->sig;
- writer.beginList();
+ writer.beginTuple();
for (const BitmaskFlag *it = sig->flags; it != sig->flags + sig->num_flags; ++it) {
if ((it->value && (value & it->value) == it->value) ||
(!it->value && value == 0)) {
@@ -112,7 +112,7 @@ public:
if (value) {
writer.writeInt(value);
}
- writer.endList();
+ writer.endTuple();
} else {
writer.writeInt(node->value);
}