# translate-c: Fix issues translating macro define of hex float constant · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/aa5514fcf2305233c468b358d22ab171f377aef9)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: aa5514fcf2305233c468b358d22ab171f377aef9

Requested commit: aa5514fcf2305233c468b358d22ab171f377aef9

Commit: aa5514fcf2305233c468b358d22ab171f377aef9

Tree: 7c85e4a710786963c5a05c0f3d62159c832c606b

Author: riverbl

Committer: Veikka Tuominen

## Message

```
translate-c: Fix issues translating macro define of hex float constant

* Fix incorrect result when the first digit after the decimal point is not 0-9 - eg 0x0.ap0
* Fix compiler panic when the number starts with `0X` with a capital `X` - eg 0X0p0
* Fix compiler panic when the number has a decimal point immediately after `0x` - eg 0x.0p0

```

## Parents

- [0d0f277954e8809ac537d11ff536639aed8f2724](https://git.cafe/gitcafe/zig/commit/0d0f277954e8809ac537d11ff536639aed8f2724?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/aa5514fcf2305233c468b358d22ab171f377aef9?format=markdown)
