]> git.sur5r.net Git - openocd/blobdiff - src/helper/binarybuffer.h
- Fixes '==' whitespace
[openocd] / src / helper / binarybuffer.h
index d1fcd8b9c721d47c75513c7e6a43c20727dcbc9d..d07a15a148c619d1df3bd23d4fb92c48a5233e3a 100644 (file)
@@ -32,7 +32,7 @@
 /* inlining this will help show what fn that is taking time during profiling. */
 static inline void buf_set_u32(uint8_t* buffer, unsigned int first, unsigned int num, uint32_t value)
 {
-       if ((num==32) && (first==0))
+       if ((num == 32) && (first == 0))
        {
                buffer[3]=(value >> 24)&0xff;
                buffer[2]=(value >> 16)&0xff;
@@ -53,7 +53,7 @@ static inline void buf_set_u32(uint8_t* buffer, unsigned int first, unsigned int
 }
 static inline uint32_t buf_get_u32(const uint8_t* buffer, unsigned int first, unsigned int num)
 {
-       if ((num==32) && (first==0))
+       if ((num == 32) && (first == 0))
        {
                return (((uint32_t)buffer[3]) << 24)|(((uint32_t)buffer[2]) << 16)|(((uint32_t)buffer[1]) << 8)|(((uint32_t)buffer[0]) << 0);
        } else