- fixed some minor issues found during reviewing the code.
This commit is contained in:
parent
671291227e
commit
29a7fe33f3
12 changed files with 51 additions and 32 deletions
|
|
@ -106,6 +106,24 @@ struct svalue_t
|
|||
string = other.string;
|
||||
value = other.value;
|
||||
}
|
||||
|
||||
void setInt(int ip)
|
||||
{
|
||||
value.i = ip;
|
||||
type = svt_int;
|
||||
}
|
||||
|
||||
void setFixed(fixed_t fp)
|
||||
{
|
||||
value.f = fp;
|
||||
type = svt_fixed;
|
||||
}
|
||||
|
||||
void setDouble(double dp)
|
||||
{
|
||||
value.f = FLOAT2FIXED(dp);
|
||||
type = svt_fixed;
|
||||
}
|
||||
};
|
||||
|
||||
int intvalue(const svalue_t & v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue