From 847275cce0c2266941bbc2acd4ab2707a0118137 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 2 Jan 2019 17:40:54 -0800 Subject: transport: Fix MSVC warning by replacing size_t with uint32_t This fixes a C4267 which pops up a lot when compiling UHD with MSVC. --- host/lib/transport/gen_vrt_if_packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') diff --git a/host/lib/transport/gen_vrt_if_packet.py b/host/lib/transport/gen_vrt_if_packet.py index 4e27d4aec..225a59dfe 100644 --- a/host/lib/transport/gen_vrt_if_packet.py +++ b/host/lib/transport/gen_vrt_if_packet.py @@ -63,7 +63,7 @@ static const pred_table_type pred_unpack_table(get_pred_unpack_table()); //maps trailer bits to num empty bytes //maps num empty bytes to trailer bits -static const size_t occ_table[] = {0, 2, 1, 3}; +static const uint32_t occ_table[] = {0, 2, 1, 3}; const uint32_t VRLP = ('V' << 24) | ('R' << 16) | ('L' << 8) | ('P' << 0); const uint32_t VEND = ('V' << 24) | ('E' << 16) | ('N' << 8) | ('D' << 0); -- cgit v1.2.3