We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95fe143 commit fa02fd0Copy full SHA for fa02fd0
source/mir/ndslice/iterator.d
@@ -137,12 +137,12 @@ struct IotaIterator(I)
137
}
138
139
ptrdiff_t opBinary(string op : "-")(const typeof(this) right) scope const
140
- { return this._index - right._index; }
+ { return cast(ptrdiff_t)(this._index - right._index); }
141
142
bool opEquals()(const typeof(this) right) scope const
143
{ return this._index == right._index; }
144
145
- ptrdiff_t opCmp()(const typeof(this) right) scope const
+ auto opCmp()(const typeof(this) right) scope const
146
{ return this._index - right._index; }
147
148
0 commit comments