fixes #1009
This commit is contained in:
parent
dc956c485a
commit
3365b42bbe
3 changed files with 45 additions and 2 deletions
|
|
@ -318,7 +318,7 @@ proc opConv*(dest: var TFullReg, src: TFullReg, desttyp, srctyp: PType): bool =
|
|||
of tyFloat..tyFloat64:
|
||||
dest.intVal = system.toInt(src.floatVal)
|
||||
else:
|
||||
dest.intVal = src.intVal and ((1 shl desttyp.size)-1)
|
||||
dest.intVal = src.intVal and ((1 shl (desttyp.size*8))-1)
|
||||
of tyFloat..tyFloat64:
|
||||
if dest.kind != rkFloat:
|
||||
myreset(dest); dest.kind = rkFloat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue