Commit 1f043e3d authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #223 from lyh-kernel/pyston-191

Fix uninitiated read of >> 3 == 3 (REPL)
parents 6ee86476 1e442a19
...@@ -236,15 +236,18 @@ int main(int argc, char** argv) { ...@@ -236,15 +236,18 @@ int main(int argc, char** argv) {
AST_Name* r = new AST_Name(); AST_Name* r = new AST_Name();
r->id = "repr"; r->id = "repr";
r->ctx_type = AST_TYPE::Load; r->ctx_type = AST_TYPE::Load;
r->lineno = 0;
c->func = r; c->func = r;
c->starargs = NULL; c->starargs = NULL;
c->kwargs = NULL; c->kwargs = NULL;
c->args.push_back(e->value); c->args.push_back(e->value);
c->lineno = 0;
AST_Print* p = new AST_Print(); AST_Print* p = new AST_Print();
p->dest = NULL; p->dest = NULL;
p->nl = true; p->nl = true;
p->values.push_back(c); p->values.push_back(c);
p->lineno = 0;
m->body[0] = p; m->body[0] = p;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment