Skip to content
Browse files

[Utilities] Cast args to int explicitly, to make sure we don't get nu…

…ll pmc errors
  • Loading branch information...
1 parent 9c48367 commit 2ac63b13c224b715efe7c6432de14ee6a6a6cf8b @Whiteknight committed Sep 3, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/utilities/dump_pbc.winxed
View
6 src/utilities/dump_pbc.winxed
@@ -25,9 +25,9 @@ function dump_pbc_main(var args)
{
string libpath = args[0];
int dump_all = args["all"];
- int dump_classes = dump_all || args["class"];
- int dump_namespaces = dump_all || args["namespace"];
- int dump_functions = dump_all || args["function"];
+ int dump_classes = dump_all || int(args["class"]);
+ int dump_namespaces = dump_all || int(args["namespace"]);
+ int dump_functions = dump_all || int(args["function"]);
// TODO: Dump some header information in all modes

0 comments on commit 2ac63b1

Please sign in to comment.
Something went wrong with that request. Please try again.