Skip to content

Commit

Permalink
Merge branch 'feature/1848-dragonbox' into 'develop'
Browse files Browse the repository at this point in the history
#1848 Enabled compile time options in libfmt for improving floating-point numbers serialization

See merge request itv-backend/reindexer!1711
  • Loading branch information
reindexer-bot committed Nov 8, 2024
1 parent a3e5a37 commit 9531264
Show file tree
Hide file tree
Showing 41 changed files with 589 additions and 745 deletions.
6 changes: 3 additions & 3 deletions cjson/creflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type payloadIface struct {
func (pl *payloadIface) ptr(field, idx, typ int) unsafe.Pointer {

if pl.p == 0 {
panic(fmt.Errorf("Null pointer derefernce"))
panic(fmt.Errorf("Null pointer dereference"))
}

f := &pl.t.Fields[field]
Expand All @@ -91,7 +91,7 @@ func (pl *payloadIface) ptr(field, idx, typ int) unsafe.Pointer {

if !f.IsArray {
if idx != 0 {
panic(fmt.Errorf("Trying to acces by index '%d' to non array field '%s'", idx, f.Name))
panic(fmt.Errorf("Trying to access by index '%d' to non array field '%s'", idx, f.Name))
}
return p
}
Expand Down Expand Up @@ -197,7 +197,7 @@ func (pl *payloadIface) getArrayLen(field int) int {
return int((*ArrayHeader)(p).len)
}

// get c reflect value and set to go reflect valie
// get c reflect value and set to go reflect value
func (pl *payloadIface) getValue(field int, idx int, v reflect.Value) {

k := v.Type().Kind()
Expand Down
31 changes: 0 additions & 31 deletions clang-tidy/.clang-tidy

This file was deleted.

10 changes: 0 additions & 10 deletions clang-tidy/.clang-tidy-ignore

This file was deleted.

Loading

0 comments on commit 9531264

Please sign in to comment.