octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oct-parse.yy:3727:29: error: invalid suffix "pp" on integer constant


From: John W. Eaton
Subject: Re: oct-parse.yy:3727:29: error: invalid suffix "pp" on integer constant
Date: Fri, 22 Oct 2010 05:33:20 -0400

On 22-Oct-2010, Ben Abbott wrote:

| Regarding the changeset below ...
| 
|       http://hg.savannah.gnu.org/hgweb/octave/rev/a51ac4198e1c
| 
| I'm getting an error for line 3727
| 
| oct-parse.yy:3727:29: error: invalid suffix "pp" on integer constant
| oct-parse.cc: In function 'int octave_parse()':
| oct-parse.cc:2362: warning: use of old-style cast
| oct-parse.cc:2379: warning: use of old-style cast
| oct-parse.cc:2419: warning: use of old-style cast
| make[3]: *** [liboctinterp_la-oct-parse.lo] Error 1
| make[2]: *** [all] Error 2
| make[1]: *** [all-recursive] Error 1
| make: *** [all] Error 2
| 
| 3721     {
| 3722       nm = octave_env::base_pathname (file);
| 3723       nm = nm.substr (0, nm.find_last_of ('.'));
| 3724 
| 3725       size_t pos = nm.find_last_of (file_ops::dir_sep_str ());
| 3726       if (pos != std::string::npos)
| 3727         nm = nm.substr (pos+1pp);
| 3728     }
| 
| I don't understand what is being done here, but should that be ...
| 
| 3727         nm = nm.substr (pos+1);

Yes, I checked in that fix.  Maybe I need a new keyboard.  One that
records what I mean, not what I type.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]