Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2017-08-12 07:06:02 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-08-12 07:06:29 +0300
commita60727080f136bbbc3628bcd54d4d78fc95b6a4e (patch)
tree8386f890e47488b22445dac8a9d4772b70d285d9 /source/blender/blentranslation
parent9567529b8f854449e10d59f793f0a225b9a4c495 (diff)
parentccb8e78d6cf44de53e7a49386d2b95636c593894 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/blentranslation')
-rw-r--r--source/blender/blentranslation/msgfmt/msgfmt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blentranslation/msgfmt/msgfmt.c b/source/blender/blentranslation/msgfmt/msgfmt.c
index 7dc8f3e71c8..3abce7b1d3f 100644
--- a/source/blender/blentranslation/msgfmt/msgfmt.c
+++ b/source/blender/blentranslation/msgfmt/msgfmt.c
@@ -160,7 +160,8 @@ static char **get_keys_sorted(GHash *messages, const uint32_t num_keys)
return keys;
}
-BLI_INLINE size_t uint32_to_bytes(const int value, char *bytes) {
+BLI_INLINE size_t uint32_to_bytes(const int value, char *bytes)
+{
size_t i;
for (i = 0; i < sizeof(value); i++) {
bytes[i] = (char) ((value >> ((int)i * 8)) & 0xff);
@@ -168,7 +169,8 @@ BLI_INLINE size_t uint32_to_bytes(const int value, char *bytes) {
return i;
}
-BLI_INLINE size_t msg_to_bytes(char *msg, char *bytes, uint32_t size) {
+BLI_INLINE size_t msg_to_bytes(char *msg, char *bytes, uint32_t size)
+{
/* Note that we also perform replacing of our NULLSEP placeholder by real NULL char... */
size_t i;
for (i = 0; i < size; i++, msg++, bytes++) {