Commit 5973da05 by Sheng Zha Committed by Tianqi Chen

enable negative values in TShape (#125)

parent 06c06f58
...@@ -216,7 +216,7 @@ class Tuple { ...@@ -216,7 +216,7 @@ class Tuple {
// get ( // get (
while (true) { while (true) {
char ch = is.peek(); char ch = is.peek();
if (isdigit(ch)) { if (isdigit(ch) || ch == '-') {
ValueType idx; ValueType idx;
if (is >> idx) { if (is >> idx) {
t.assign(&idx, &idx + 1); t.assign(&idx, &idx + 1);
......
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