diff 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
line wrap: on
line diff
--- a/libinterp/corefcn/pt-jit.cc	Mon Oct 12 23:28:29 2015 +0200
+++ b/libinterp/corefcn/pt-jit.cc	Mon Oct 12 16:08:12 2015 -0700
@@ -2170,7 +2170,7 @@
   if (bounds.is_range ())
     {
       Range rng = bounds.range_value ();
-      return rng.nelem ();
+      return rng.numel ();
     }
 
   // unsupported type