Cambiata integer() dei real: adesso ritorna long. Sistemati files dipendenti
(ma non erano tutti questi. Boh.) git-svn-id: svn://10.65.10.50/trunk@264 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
867ca4bd7d
commit
0178369ee6
@ -426,9 +426,9 @@ update_keydef (int key, const char *desc)
|
||||
_rec->Ky[key].FieldSeq[n] += MaxFields;
|
||||
else if (sym == _number)
|
||||
{
|
||||
_rec->Ky[key].FromCh[n] = inst.number ().integer () - 1;
|
||||
_rec->Ky[key].FromCh[n] = (int)inst.number().integer() - 1;
|
||||
inst = c.step ();
|
||||
_rec->Ky[key].ToCh[n] = _rec->Ky[key].FromCh[n] + inst.number ().integer () - 1;
|
||||
_rec->Ky[key].ToCh[n] = _rec->Ky[key].FromCh[n] + (int)inst.number ().integer () - 1;
|
||||
inst = c.step ();
|
||||
}
|
||||
else
|
||||
|
@ -1,4 +1,4 @@
|
||||
// $Id: mailbox.cpp,v 1.1.1.1 1994-08-12 10:52:01 alex Exp $
|
||||
// $Id: mailbox.cpp,v 1.2 1994-09-19 09:49:41 villa Exp $
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <fstream.h>
|
||||
|
@ -1,4 +1,4 @@
|
||||
// $Id: mailbox.h,v 1.1.1.1 1994-08-12 10:52:01 alex Exp $
|
||||
// $Id: mailbox.h,v 1.2 1994-09-19 09:49:42 villa Exp $
|
||||
|
||||
/* si', trattasi di -*-c++-*- */
|
||||
// Mailbox.h
|
||||
|
@ -14,8 +14,8 @@
|
||||
#include <mask.h>
|
||||
#include <utility.h>
|
||||
#include <viswin.h>
|
||||
#include <printapp.h>
|
||||
#include <extcdecl.h>
|
||||
#include <applicat.h>
|
||||
|
||||
#include <printer.h>
|
||||
#include <execp.h>
|
||||
|
@ -167,9 +167,9 @@ real real ::operator - () const
|
||||
return n;
|
||||
}
|
||||
|
||||
int real ::integer () const
|
||||
long real::integer () const
|
||||
{
|
||||
return dtoi (ptr ());
|
||||
return (long)dtodf(ptr ());
|
||||
}
|
||||
|
||||
// Certified 91%
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
int precision() ;
|
||||
bool is_zero() const;
|
||||
int sign() const;
|
||||
int integer() const; // operator int is too dangerous
|
||||
long integer() const; // operator int is too dangerous
|
||||
|
||||
real& round(int prec = 0) ;
|
||||
real& trunc(int prec = 0) ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user