diff options
| author | Krasimir Angelov <kr.angelov@gmail.com> | 2017-09-13 14:05:26 +0200 |
|---|---|---|
| committer | Krasimir Angelov <kr.angelov@gmail.com> | 2017-09-13 14:05:26 +0200 |
| commit | febf01a9bec6043ca0c988fcc91126b0b6e60d51 (patch) | |
| tree | 3f9cef7a600d3283d6eab59ee550ddfb046333c7 /src/runtime/c/gu | |
| parent | 80b61f716c33504a060903b9c66020d487e6f5c8 (diff) | |
corrections in the PGF writer
Diffstat (limited to 'src/runtime/c/gu')
| -rw-r--r-- | src/runtime/c/gu/out.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/runtime/c/gu/out.c b/src/runtime/c/gu/out.c index f3edbe1e4..164f483d1 100644 --- a/src/runtime/c/gu/out.c +++ b/src/runtime/c/gu/out.c @@ -172,21 +172,21 @@ gu_out_try_u8_(GuOut* restrict out, uint8_t u); GU_API void gu_out_u16be(GuOut* out, uint16_t u, GuExn* err) { - gu_out_u8(out, (u>>8) && 0xFF, err); - gu_out_u8(out, u && 0xFF, err); + gu_out_u8(out, (u>>8) & 0xFF, err); + gu_out_u8(out, u & 0xFF, err); } GU_API void gu_out_u64be(GuOut* out, uint64_t u, GuExn* err) { - gu_out_u8(out, (u>>56) && 0xFF, err); - gu_out_u8(out, (u>>48) && 0xFF, err); - gu_out_u8(out, (u>>40) && 0xFF, err); - gu_out_u8(out, (u>>32) && 0xFF, err); - gu_out_u8(out, (u>>24) && 0xFF, err); - gu_out_u8(out, (u>>16) && 0xFF, err); - gu_out_u8(out, (u>>8) && 0xFF, err); - gu_out_u8(out, u && 0xFF, err); + gu_out_u8(out, (u>>56) & 0xFF, err); + gu_out_u8(out, (u>>48) & 0xFF, err); + gu_out_u8(out, (u>>40) & 0xFF, err); + gu_out_u8(out, (u>>32) & 0xFF, err); + gu_out_u8(out, (u>>24) & 0xFF, err); + gu_out_u8(out, (u>>16) & 0xFF, err); + gu_out_u8(out, (u>>8) & 0xFF, err); + gu_out_u8(out, u & 0xFF, err); } GU_API void |
