Commit a454f2d6 authored by Daan Vreeken's avatar Daan Vreeken
Browse files

Fix long-standing copy/pasto.

Don't intialize bool or uint32_t with float value.

	modified:   block/block_value_bool.c
	modified:   block/block_value_uint32.c
parent 6d0a8b7b
......@@ -66,7 +66,7 @@ static struct controller_block * block_value_bool_create(char *name, int argc,
return NULL;
if (argc == 0)
value->private->value = 0.0;
value->private->value = false;
else
value->private->value = va_arg(val, int);
......
......@@ -66,7 +66,7 @@ static struct controller_block * block_value_uint32_create(char *name,
return NULL;
if (argc == 0)
value->private->value = 0.0;
value->private->value = 0;
else
value->private->value = va_arg(val, int);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment