projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36faaa3
)
- add missing else part in rpmdbid2db()
author
Michael Schroeder
<mls@suse.de>
Thu, 24 Mar 2011 09:53:52 +0000
(10:53 +0100)
committer
Michael Schroeder
<mls@suse.de>
Thu, 24 Mar 2011 09:53:52 +0000
(10:53 +0100)
ext/repo_rpmdb.c
patch
|
blob
|
history
diff --git
a/ext/repo_rpmdb.c
b/ext/repo_rpmdb.c
index 801ed4b1a0ca221599ad5c223e50851bb1da0bbd..77d85424d8c0c0604c44eac8d8e397e804615aba 100644
(file)
--- a/
ext/repo_rpmdb.c
+++ b/
ext/repo_rpmdb.c
@@
-1259,11
+1259,12
@@
static inline void rpmdbid2db(unsigned char *db, Id id, int byteswapped)
#else
# if defined(WORDS_BIGENDIAN)
if (!byteswapped)
- db[0] = id >> 24, db[1] = id >> 16, db[2] = id >> 8, db[3] = id;
# else
if (byteswapped)
- db[3] = id >> 24, db[2] = id >> 16, db[1] = id >> 8, db[0] = id;
# endif
+ db[0] = id >> 24, db[1] = id >> 16, db[2] = id >> 8, db[3] = id;
+ else
+ db[3] = id >> 24, db[2] = id >> 16, db[1] = id >> 8, db[0] = id;
#endif
}