Skip to content

Commit

Permalink
Use ptrdiff_t as wxVector::difference_type instead of size_t
Browse files Browse the repository at this point in the history
difference_type must be signed, using size_t was clearly a mistake.
  • Loading branch information
vadz committed Feb 23, 2018
1 parent 7e0ca83 commit 382a5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/wx/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class wxVector

public:
typedef size_t size_type;
typedef size_t difference_type;
typedef ptrdiff_t difference_type;
typedef T value_type;
typedef value_type* pointer;
typedef const value_type* const_pointer;
Expand Down

0 comments on commit 382a5a1

Please sign in to comment.