summaryrefslogtreecommitdiff
path: root/lyt/common.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lyt/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lyt/common.h b/lyt/common.h
index 9c39339..49061ce 100644
--- a/lyt/common.h
+++ b/lyt/common.h
@@ -25,11 +25,15 @@
union Magic {
char str[4];
quint32 value;
+
+ Magic(quint32 v) : value(v) { }
};
union Version {
char str[2];
quint16 value;
+
+ Version(quint16 v) : value(v) { }
};