Skip to content

Commit

Permalink
db_perlvdb: Fix incorrect integer downcast
Browse files Browse the repository at this point in the history
Credits to Aaron Meriwether for spotting the bug and suggesting the fix

Fixes #1952

(cherry picked from commit 3e83412)
  • Loading branch information
liviuchircu committed May 30, 2020
1 parent 25baf4f commit ea13cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/db_perlvdb/perlvdbfunc.c
Expand Up @@ -136,7 +136,7 @@ db_con_t* perlvdb_db_init(const str* url) {
return NULL;
}
memset(res, 0, consize);
CON_TAIL(res) = (unsigned int)(unsigned long)obj;
CON_TAIL(res) = (unsigned long)obj;

return res;
}
Expand Down

0 comments on commit ea13cc5

Please sign in to comment.