Permalink
Browse files

Packfile.Key: use int for types

Fixes calling the wrong multi constructor
  • Loading branch information...
1 parent f6ce9b1 commit 98f44680b9c1b8b865caaf4fa0e52909b0e448dd @Benabik Benabik committed Aug 7, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/PACT/Packfile.winxed
View
@@ -201,12 +201,13 @@ namespace PACT.Packfile {
function Key[multi('_', 'Key')](var value) {
self.Key();
while (value != null) {
+ int type = value.get_type();
if (value.is_register_reference()) {
- :PACT.Packfile.Register reg(value.get_type(),
+ :PACT.Packfile.Register reg(type,
value.get_register_idx());
push(self.value, reg);
} else {
- :PACT.Packfile.Constant c(value.get_type(), value);
+ :PACT.Packfile.Constant c(type, value);
push(self.value, c);
}
value = shift_var(value);

0 comments on commit 98f4468

Please sign in to comment.