]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/extended.c
fixing overrelease and out-of-bounds write, fixes #13725
[wxWidgets.git] / src / common / extended.c
index 6933fb2ac9ef054436c937e85343db663f8b10e8..2b6f4eb3aa6e637ebbeaaaef6c814eeac99a3758 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
-** Name:        extended.c
+** Name:        src/common/extended.c
 ** Purpose:     IEEE Extended<->Double routines to save floats to file
 ** Maintainer:  Ryan Norton
 ** Modified by:
  * and a 64-bit mantissa, with no hidden bit.
  ****************************************************************/
 
-WXDLLEXPORT wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes)
+WXDLLIMPEXP_BASE wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes)
 {
     wxFloat64 f;
     wxInt32 expon;
@@ -145,7 +145,7 @@ WXDLLEXPORT wxFloat64 wxConvertFromIeeeExtended(const wxInt8 *bytes)
 /****************************************************************/
 
 
-WXDLLEXPORT void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes)
+WXDLLIMPEXP_BASE void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes)
 {
     wxInt32 sign;
     wxInt32 expon;
@@ -192,12 +192,12 @@ WXDLLEXPORT void wxConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes)
 }
 
 #if WXWIN_COMPATIBILITY_2_8
-WXDLLEXPORT wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes)
+WXDLLIMPEXP_BASE wxFloat64 ConvertFromIeeeExtended(const wxInt8 *bytes)
 {
     return wxConvertFromIeeeExtended(bytes);
 }
 
-WXDLLEXPORT void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes)
+WXDLLIMPEXP_BASE void ConvertToIeeeExtended(wxFloat64 num, wxInt8 *bytes)
 {
     wxConvertToIeeeExtended(num, bytes);
 }