mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Merge pull request #8816 from mshabunin:sprintf-fix
Fixed snprintf for VS 2013 (#8816) * Fixed snprintf for VS 2013 * snprintf: removed declaration from header, changed implementation * cv_snprintf corrected according to comments * update snprintf patch
This commit is contained in:
committed by
Alexander Alekhin
parent
515e01e649
commit
f71ea4dfe9
@@ -103,7 +103,7 @@ namespace cv
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf(floatFormat, 8, "%%.%dg", std::min(precision, 20));
|
||||
cv_snprintf(floatFormat, sizeof(floatFormat), "%%.%dg", std::min(precision, 20));
|
||||
}
|
||||
|
||||
switch(mtx.depth())
|
||||
|
||||
Reference in New Issue
Block a user