Re: [Vala] [Genie] how to default to float
- From: Jamie McCracken <jamie mccrack googlemail com>
- To: Arc Riley <arcriley gmail com>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] [Genie] how to default to float
- Date: Tue, 05 Jan 2010 19:50:49 -0500
On Tue, 2010-01-05 at 06:56 -0500, Arc Riley wrote:
I've been hitting a problem where passing float to a function which takes a
float fails because Genie is reading it as a double. IE:
var body = new RigidBody(null, 1.0, null)
src/windows.gs:35.36-35.38: error: Argument 2: Cannot convert from `double'
to `float'
pls use f at end of value to indicate float (I believe this is same with
vala)
EG
var body = new RigidBody(null, 1.0f, null)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]