Skip to content

Commit

Permalink
fix: CArchive reading/writing of CVariant used different types for ty…
Browse files Browse the repository at this point in the history
…pe. Fixes #14744.
  • Loading branch information
Jonathan Marshall committed Dec 23, 2013
1 parent d0899b2 commit e68fea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/utils/Archive.cpp
Expand Up @@ -337,7 +337,7 @@ CArchive& CArchive::operator>>(IArchivable& obj)

CArchive& CArchive::operator>>(CVariant& variant)
{
size_t type;
int type;
*this >> type;
variant = CVariant((CVariant::VariantType)type);

Expand Down

2 comments on commit e68fea4

@Karlson2k
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmarshallnz Thanks!

@rpardini
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and working, thanks. http://trac.xbmc.org/ticket/14744#comment:20

Please sign in to comment.