projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: split real FC/field into single and double prec FC/field
[babeltrace.git]
/
src
/
plugins
/
ctf
/
common
/
metadata
/
ctf-meta-translate.c
diff --git
a/src/plugins/ctf/common/metadata/ctf-meta-translate.c
b/src/plugins/ctf/common/metadata/ctf-meta-translate.c
index 7d0d966acc0fada002887d520aa22f6630bce880..b7f2cbdb1a0bb44c689fafdc1a3c1e69fbf9a744 100644
(file)
--- a/
src/plugins/ctf/common/metadata/ctf-meta-translate.c
+++ b/
src/plugins/ctf/common/metadata/ctf-meta-translate.c
@@
-134,13
+134,12
@@
bt_field_class *ctf_field_class_float_to_ir(struct ctx *ctx,
{
bt_field_class *ir_fc;
{
bt_field_class *ir_fc;
- ir_fc = bt_field_class_real_create(ctx->ir_tc);
- BT_ASSERT(ir_fc);
-
if (fc->base.size == 32) {
if (fc->base.size == 32) {
- bt_field_class_real_set_is_single_precision(ir_fc,
- BT_TRUE);
+ ir_fc = bt_field_class_real_single_precision_create(ctx->ir_tc);
+ } else {
+ ir_fc = bt_field_class_real_double_precision_create(ctx->ir_tc);
}
}
+ BT_ASSERT(ir_fc);
return ir_fc;
}
return ir_fc;
}
This page took
0.02535 seconds
and
4
git commands to generate.