Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teams API topic branch #886
Teams API topic branch #886
Changes from 1 commit
6d3a31b
73439c9
99d2f97
f00ac33
1526cf2
2f2fb84
52339d8
0e9a662
1b53db4
81884da
23226ca
8e4f844
41feee7
e587b63
3332081
b01b801
18becf8
b7fd4fa
1ef41d7
4c8fa5c
8c73f23
1598f51
4a1391c
568324b
00bac21
2665b71
63cfde3
de5ba2c
a4f0217
41109d2
c71e028
e9d8043
16cf053
90d96f2
eca2f5c
33fc9fe
ff30922
e26f0e9
f9a94e7
48b0290
e74ea03
8cf7156
b6cf4e2
1a7c7e7
db70857
bd7c010
281739a
f5c6cf1
cab66b6
674e8b7
117e69a
2fe2b61
cd884dc
4fa6681
743da92
f496282
280fdd4
7d66d55
791d568
f6bdaa4
e8076c2
d920b63
3ea2e5b
5853583
a2f8c63
7a1518a
23be78e
2b0ec16
f265b40
b86b413
1ba3da4
61e8b44
4c84ced
88f46fe
fce3cb2
be9f86a
f8b9ff6
aa8bd2f
87a44ea
9e2e095
a296326
314daa8
39c3694
1cc7b7e
db112f5
daff427
9044877
595d1f0
57d414b
7c57f6f
d40b74b
1d2da2b
b4e26ca
3b85c1a
24ca0a0
90886c8
c76260f
0310b31
5294eb0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So ... A byte in C is not guaranteed to be an octet (hence
CHAR_BIT
) andsizeof
returns bytes [1]. But, the fixed-width types (e.g.int64_t
) are exactly that number of bits. So, there is an incongruence that could be problematic (at least in principle) if you use fixed-width types and access through achar
pointer. Ifptr
is going to correspond to a fixed-width type, we could introduce a configure check to ensure thatCHAR_BIT
evenly divides 64, or we can treatsize
as a number of octets and useuint8_t *
instead ofunsigned char *
. Or we can ignore this problem (maybe just add a comment) since in practice it will never happen. Or (best option yet) makeptr
anunsigned char *
instead ofvoid *
and use an array ofunsigned char
for the bit array. I think I like this option best.[1] https://stackoverflow.com/questions/11868211/does-sizeof-return-the-number-of-bytes-or-the-number-of-octets-of-a-type-in-c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call! I think this is resolved, but please double check.