Index: trunk/src/core/ascii_printer.cc
===================================================================
--- trunk/src/core/ascii_printer.cc	(revision 486)
+++ trunk/src/core/ascii_printer.cc	(revision 487)
@@ -20,5 +20,5 @@
 	for ( char c : text )
 	{
-		m_terminal->print( coord, color, static_cast<unsigned char>( c ) );
+		m_terminal->print( coord, color, c );
 		++coord.x;
 		if ( coord.x >= m_terminal->get_size().x ) break;
Index: trunk/src/core/io_event.cc
===================================================================
--- trunk/src/core/io_event.cc	(revision 486)
+++ trunk/src/core/io_event.cc	(revision 487)
@@ -64,7 +64,6 @@
 	;
 
-	uint32 counter = 0;
 	db->create_type<io_event_code>()
-#	define NV_IO_EVENT( id ) .value( #id, counter++ )
+#	define NV_IO_EVENT( id ) .value( #id, id )
 #		include <nv/detail/io_event_list.inc>
 #	undef NV_IO_EVENT
Index: trunk/src/core/random.cc
===================================================================
--- trunk/src/core/random.cc	(revision 486)
+++ trunk/src/core/random.cc	(revision 487)
@@ -22,5 +22,5 @@
 {
 	m_state[0] = static_cast<uint32>( seed & mt_full_mask );
-	for ( int i = 1; i < mersenne_n; i++ )
+	for ( uint32 i = 1; i < mersenne_n; i++ )
 	{
 		m_state[i]  = ( 1812433253UL * ( m_state[i - 1] ^ ( m_state[i - 1] >> 30 ) ) + i );
@@ -71,5 +71,5 @@
 
 random::random( random::seed_type seed /*= 0 */ )
-	: m_remaining( 0 ), m_next( nullptr ), m_seeded( 0 )
+	: m_next( nullptr ), m_remaining( 0 ), m_seeded( 0 )
 {
 	mt_init( seed == 0 ? randomized_seed() : seed );
