Fix passing of float arguments through ffi.

llvm-svn: 89198
This commit is contained in:
Nick Lewycky 2009-11-18 05:43:15 +00:00
parent 928a567af1
commit 41ee792832
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ static void *ffiValueFor(const Type *Ty, const GenericValue &AV,
}
case Type::FloatTyID: {
float *FloatPtr = (float *) ArgDataPtr;
*FloatPtr = AV.DoubleVal;
*FloatPtr = AV.FloatVal;
return ArgDataPtr;
}
case Type::DoubleTyID: {