aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-01-02 17:40:54 -0800
committerBrent Stapleton <brent.stapleton@ettus.com>2019-01-03 09:27:28 -0800
commit847275cce0c2266941bbc2acd4ab2707a0118137 (patch)
tree528391b3c91c1a52eefed5cb96d29e7bba30d9b2 /host
parent8c217ad0586432aa6fd39c8e294ba78bda61bcb8 (diff)
downloaduhd-847275cce0c2266941bbc2acd4ab2707a0118137.tar.gz
uhd-847275cce0c2266941bbc2acd4ab2707a0118137.tar.bz2
uhd-847275cce0c2266941bbc2acd4ab2707a0118137.zip
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.
Diffstat (limited to 'host')
-rw-r--r--host/lib/transport/gen_vrt_if_packet.py2
1 files changed, 1 insertions, 1 deletions
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);