Mercurial > octave-nkf
comparison libinterp/corefcn/pt-jit.cc @ 20649:d35201e5ce5d
Fix compilation of jit broken by dd6345fd8a97 (bug #46191).
* jit-typeinfo.cc (octave_jit_compute_nelem): Use rng.numel() rather than
deprecated nelem().
* jit-typeinfo.cc (octave_jit_ginvalid_index): Call gripe_invalid_index (-1)
now that 0-argument form of function has been removed.
* jit-typeinfo.h (jit_range): Use numel() rather than nelem() for Range.
* pt-jit.cc (trip_count): Use numel() rather than nelem() for Range.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 12 Oct 2015 16:08:12 -0700 |
parents | 4f45eaf83908 |
children | b65888ec820e |
comparison
equal
deleted
inserted
replaced
20648:27c091f4b66d | 20649:d35201e5ce5d |
---|---|
2168 tree_jit::trip_count (const octave_value& bounds) const | 2168 tree_jit::trip_count (const octave_value& bounds) const |
2169 { | 2169 { |
2170 if (bounds.is_range ()) | 2170 if (bounds.is_range ()) |
2171 { | 2171 { |
2172 Range rng = bounds.range_value (); | 2172 Range rng = bounds.range_value (); |
2173 return rng.nelem (); | 2173 return rng.numel (); |
2174 } | 2174 } |
2175 | 2175 |
2176 // unsupported type | 2176 // unsupported type |
2177 return 0; | 2177 return 0; |
2178 } | 2178 } |