r23211 by jghali - Fix msvc warning C4267 : conversion from 'size_t' to 'UT_uint32', possible loss of data

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 24 12:44:59 UTC 2019


Author: jghali
Date: Tue Sep 24 12:44:59 2019
New Revision: 23211

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23211
Log:
Fix msvc warning C4267 : conversion from 'size_t' to 'UT_uint32', possible loss of data

Modified:
    trunk/Scribus/scribus/plugins/gettext/pdbim/pdbim.h

Modified: trunk/Scribus/scribus/plugins/gettext/pdbim/pdbim.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23211&path=/trunk/Scribus/scribus/plugins/gettext/pdbim/pdbim.h
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/pdbim/pdbim.h	(original)
+++ trunk/Scribus/scribus/plugins/gettext/pdbim/pdbim.h	Tue Sep 24 12:44:59 2019
@@ -92,8 +92,8 @@
 /*! \brief Binary buffer */
 typedef struct {
 	Byte buf[BUFFER_SIZE];
-	UT_uint32   len;
-	UT_uint32   position;
+	size_t   len;
+	size_t   position;
 } buffer;
 
 #define GET_Word(f,n)   { size_t result = fread( &n, 2, 1, f ); if (result == 1) n = swap_Word ( n ); }




More information about the scribus-commit mailing list