Skip to content

Commit d0e5b64

Browse files
committed
version bump
1 parent 33664f9 commit d0e5b64

File tree

3 files changed

+23753
-15578
lines changed

3 files changed

+23753
-15578
lines changed

gocroaring.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package gocroaring
55

66
/*
7-
#cgo CFLAGS: -O3 -std=c99
7+
#cgo CFLAGS: -O3 -std=c11
88
#include "roaring.h"
99
1010
*/
@@ -434,24 +434,24 @@ func (ii *intIterator) Next() uint32 {
434434
answer := ii.current
435435
ii.has_next = bool(ii.pointertonext.has_value)
436436
ii.current = uint32(ii.pointertonext.current_value)
437-
C.roaring_advance_uint32_iterator(ii.pointertonext)
437+
C.roaring_uint32_iterator_advance(ii.pointertonext)
438438
runtime.KeepAlive(ii)
439439
return answer
440440
}
441441

442442
func freeIntIterator(a *intIterator) {
443-
C.roaring_free_uint32_iterator(a.pointertonext)
443+
C.roaring_uint32_iterator_free(a.pointertonext)
444444
runtime.KeepAlive(a)
445445
}
446446

447447
// This function may panic if the allocation failed.
448448
func newIntIterator(a *Bitmap) *intIterator {
449449
p := new(intIterator)
450-
p.pointertonext = C.roaring_create_iterator(a.cpointer)
450+
p.pointertonext = C.roaring_iterator_create(a.cpointer)
451451
p.has_next = bool(p.pointertonext.has_value)
452452
p.current = uint32(p.pointertonext.current_value)
453453
if p.has_next {
454-
C.roaring_advance_uint32_iterator(p.pointertonext)
454+
C.roaring_uint32_iterator_advance(p.pointertonext)
455455
}
456456
runtime.KeepAlive(a)
457457
if p.pointertonext == nil {
@@ -534,7 +534,6 @@ func Read(b []byte) (*Bitmap, error) {
534534
// this is immutable and attempting to mutate it will fail catastrophically
535535
// It keeps a reference to the buffer internally to make sure it's alive for
536536
// the complete lifetime of the view
537-
//
538537
func ReadFrozenView(b []byte) (*Bitmap, error) {
539538
bchar := (*C.char)(unsafe.Pointer(&b[0]))
540539
answer := &frozenBitmap{

0 commit comments

Comments
 (0)