Hi, ALL,
One stupid question: what sqlite3_last_insert_rowid() function returns?

I have the following code:

int MyClass::Foo()
{
       return sqlite3_last_insert_rowid( m_handle );
}

It compiles fine on Windows (7 64 bit) with MSVC 2010 SP1 Pro 32-bit project.
But on Snow Leopard XCode 4.2 32-bit project Cocoa it produces:

"Implicit conversion shortens 64-bit value to 32-bit"

Trying to change the return type to long does not solve the warning.

Which value should this function return?

Thank you.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to