Skip to content

Commit

Permalink
Merge pull request opencv#1366 from asmorkalov:ocv_autobuffer_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Donchenko authored and OpenCV Buildbot committed Aug 29, 2013
2 parents 86f4cd2 + 5af2cc6 commit fc37df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/core/include/opencv2/core/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ template<typename _Tp, size_t fixed_size = 1024/sizeof(_Tp)+8> class AutoBuffer
_Tp* ptr;
//! size of the real buffer
size_t sz;
//! pre-allocated buffer
_Tp buf[fixed_size];
//! pre-allocated buffer. At least 1 element to confirm C++ standard reqirements
_Tp buf[(fixed_size > 0) ? fixed_size : 1];
};

//! Sets/resets the break-on-error mode.
Expand Down

0 comments on commit fc37df0

Please sign in to comment.