summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-22 15:24:01 +0100
committerDavid Robillard <d@drobilla.net>2020-12-22 15:24:01 +0100
commitc2e45d3b8338447be4b4cb10b1c43871a5a49460 (patch)
tree3a7a1bff652be934b626889a048ffb9e99396de1 /src
parentea28ade6ad7ec94dd35b0f24aef35850b56d0cbb (diff)
downloadsratom-c2e45d3b8338447be4b4cb10b1c43871a5a49460.tar.gz
sratom-c2e45d3b8338447be4b4cb10b1c43871a5a49460.tar.bz2
sratom-c2e45d3b8338447be4b4cb10b1c43871a5a49460.zip
Remove cloned branches
Diffstat (limited to 'src')
-rw-r--r--src/sratom.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sratom.c b/src/sratom.c
index 57f4667..4f09846 100644
--- a/src/sratom.c
+++ b/src/sratom.c
@@ -554,7 +554,7 @@ read_resource(Sratom* sratom,
static uint32_t
atom_size(Sratom* sratom, uint32_t type_urid)
{
- if (type_urid == sratom->forge.Int) {
+ if (type_urid == sratom->forge.Int || type_urid == sratom->forge.Bool) {
return sizeof(int32_t);
} else if (type_urid == sratom->forge.Long) {
return sizeof(int64_t);
@@ -562,8 +562,6 @@ atom_size(Sratom* sratom, uint32_t type_urid)
return sizeof(float);
} else if (type_urid == sratom->forge.Double) {
return sizeof(double);
- } else if (type_urid == sratom->forge.Bool) {
- return sizeof(int32_t);
} else if (type_urid == sratom->forge.URID) {
return sizeof(uint32_t);
}