2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

pb_show: Don't show all unknown fields as boolean

Broken by 92b6d86c.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-08-15 20:53:35 +04:00
parent 7e3463a855
commit 712979a475

View File

@@ -349,11 +349,12 @@ static pb_pr_show_t get_pb_show_function(int type)
return show_nested_message;
case PROTOBUF_C_TYPE_ENUM:
return show_enum;
case PROTOBUF_C_TYPE_BOOL:
return show_bool;
case PROTOBUF_C_TYPE_FLOAT:
case PROTOBUF_C_TYPE_DOUBLE:
case PROTOBUF_C_TYPE_BOOL:
case PROTOBUF_C_TYPE_BYTES:
return show_bool;
break;
default:
BUG();
}