Skip to content

Commit 1ec2b7e

Browse files
committed
update with latest version from review
1 parent a417a1e commit 1ec2b7e

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/openw3d.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,14 @@ jobs:
4444
shell: msys2 {0}
4545
- name: Linux x64
4646
os: ubuntu-latest
47-
build-args: --parallel --target scripts bandtest wwbitpack
47+
build-args: >
48+
--parallel
49+
--target
50+
scripts
51+
bandtest
52+
wwmath
53+
wwutil
54+
wwbitpack
4855
shell: bash
4956

5057
steps:

Code/wwbitpack/BitPacker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include "always.h"
3232
#include <cstdint>
3333

34-
static const int MAX_BITS = 32;
34+
static constexpr int MAX_BITS = 8 * sizeof(uint32_t);
3535

3636
// 1400 is too big. Minimum MTU allowable on the internet is 576. IP Header is 20 bytes. UDP header is 8 bytes
3737
// So our max packet size is 576 - 28 = 548

0 commit comments

Comments
 (0)