Fix some things that GCC 10 doesn't like on raspi.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3690 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -52,8 +52,10 @@ static JSValue _database_create(JSContext* context, JSValueConst this_val, int a
|
||||
{
|
||||
++_database_count;
|
||||
JSValue object = JS_NewObjectClass(context, _database_class_id);
|
||||
sqlite3* db = NULL;
|
||||
JS_ToInt64(context, (int64_t*)&db, data[0]);
|
||||
|
||||
int64_t value = 0;
|
||||
JS_ToInt64(context, &value, data[0]);
|
||||
sqlite3* db = (sqlite3*)(intptr_t)value;
|
||||
|
||||
database_t* database = malloc(sizeof(database_t));
|
||||
*database = (database_t)
|
||||
|
Reference in New Issue
Block a user