diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-10 22:10:47 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-10 22:10:47 -0400 |
| commit | 37b1c3309b0f63ebe20dc36ec5da34e9143a4205 (patch) | |
| tree | d98a19972365795e3a092fd25e4854be69a588e8 /redo/table_darwin.go | |
| parent | 5ec2c768face785c502ee6508b5ed5ed0124b307 (diff) | |
Stored table column numbers more efficiently on Mac OS X.
Diffstat (limited to 'redo/table_darwin.go')
| -rw-r--r-- | redo/table_darwin.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/table_darwin.go b/redo/table_darwin.go index 37fcdf4..c80dbdc 100644 --- a/redo/table_darwin.go +++ b/redo/table_darwin.go @@ -28,7 +28,7 @@ func finishNewTable(b *tablebase, ty reflect.Type) Table { C.tableMakeDataSource(t._id, unsafe.Pointer(t)) for i := 0; i < ty.NumField(); i++ { cname := C.CString(ty.Field(i).Name) - C.tableAppendColumn(t._id, cname) + C.tableAppendColumn(t._id, C.intptr_t(i), cname) C.free(unsafe.Pointer(cname)) // free now (not deferred) to conserve memory } return t |
