Skip to content

Commit

Permalink
use PTRDIFF_MAX instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradIrwin committed Jul 26, 2023
1 parent 018f2ca commit 244955b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (t *Text) Get() (string, error) {
// prefer to use Insert/Delete/Append/Splice as appropriate
// to preserves collaborators changes.
func (t *Text) Set(s string) error {
return t.splice(0, C.SIZE_MAX>>1, s)
return t.splice(0, C.PTRDIFF_MAX, s)
}

// Insert adds a substr at position pos in the Text
Expand Down

0 comments on commit 244955b

Please sign in to comment.