mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Minor style change
This commit is contained in:
+2
-3
@@ -2046,16 +2046,15 @@ bool check_is_expressible(CheckerContext *ctx, Operand *o, Type *type) {
|
|||||||
gbString a = expr_to_string(o->expr);
|
gbString a = expr_to_string(o->expr);
|
||||||
gbString b = type_to_string(type);
|
gbString b = type_to_string(type);
|
||||||
gbString c = type_to_string(o->type);
|
gbString c = type_to_string(o->type);
|
||||||
|
gbString s = exact_value_to_string(o->value);
|
||||||
defer(
|
defer(
|
||||||
|
gb_string_free(s);
|
||||||
gb_string_free(c);
|
gb_string_free(c);
|
||||||
gb_string_free(b);
|
gb_string_free(b);
|
||||||
gb_string_free(a);
|
gb_string_free(a);
|
||||||
o->mode = Addressing_Invalid;
|
o->mode = Addressing_Invalid;
|
||||||
);
|
);
|
||||||
|
|
||||||
gbString s = exact_value_to_string(o->value);
|
|
||||||
defer (gb_string_free(s));
|
|
||||||
|
|
||||||
if (is_type_numeric(o->type) && is_type_numeric(type)) {
|
if (is_type_numeric(o->type) && is_type_numeric(type)) {
|
||||||
if (!is_type_integer(o->type) && is_type_integer(type)) {
|
if (!is_type_integer(o->type) && is_type_integer(type)) {
|
||||||
error(o->expr, "'%s' truncated to '%s', got %s", a, b, s);
|
error(o->expr, "'%s' truncated to '%s', got %s", a, b, s);
|
||||||
|
|||||||
Reference in New Issue
Block a user