Arwalk/zig-protobuf

use bitcast in get_fixed_value

Closed this issue · 2 comments

currently having fun with pointers, but @ bitCast could probably a better option.

fn get_fixed_value(comptime T: type, raw: u64) T {

Probably can reuse most of @ptrCast in @ bitCast.

It would seem i pinged by mistake someone whose nick is bitcast :( sorry in advance!