[Scummvm-cvs-logs] SF.net SVN: scummvm:[41666] tools/branches/gsoc2009-decompiler/decompiler

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Fri Jun 19 11:48:56 CEST 2009


Revision: 41666
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41666&view=rev
Author:   fingolfin
Date:     2009-06-19 09:48:56 +0000 (Fri, 19 Jun 2009)

Log Message:
-----------
fixed warnings

Modified Paths:
--------------
    tools/branches/gsoc2009-decompiler/decompiler/cfg.h
    tools/branches/gsoc2009-decompiler/decompiler/instruction.h

Modified: tools/branches/gsoc2009-decompiler/decompiler/cfg.h
===================================================================
--- tools/branches/gsoc2009-decompiler/decompiler/cfg.h	2009-06-19 09:44:33 UTC (rev 41665)
+++ tools/branches/gsoc2009-decompiler/decompiler/cfg.h	2009-06-19 09:48:56 UTC (rev 41666)
@@ -22,6 +22,8 @@
 
 	Block(Script &script, index_t begin, index_t end) : _script(script), _begin(begin), _end(end) {
 	}
+	
+	virtual ~Block() {}
 
 	virtual void print(ostream &out) {
 	}

Modified: tools/branches/gsoc2009-decompiler/decompiler/instruction.h
===================================================================
--- tools/branches/gsoc2009-decompiler/decompiler/instruction.h	2009-06-19 09:44:33 UTC (rev 41665)
+++ tools/branches/gsoc2009-decompiler/decompiler/instruction.h	2009-06-19 09:48:56 UTC (rev 41666)
@@ -55,7 +55,7 @@
 			if (_instructions[i]->_addr == addr)
 				return i;
 		fprintf(stderr, "!!! no instruction with address %x (%d)\n", addr, addr);
-		return -1;
+		return (index_t)-1;	// Note: -1 is negative, but index_t unsigned
 	}
 
 	Instruction* operator[](index_t i) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list