opal-up 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,41 +26,41 @@ namespace uWS {
26
26
  namespace utils {
27
27
 
28
28
  inline int u32toaHex(uint32_t value, char *dst) {
29
- char palette[] = "0123456789abcdef";
30
- char temp[10];
31
- char *p = temp;
32
- do {
33
- *p++ = palette[value & 15];
34
- value >>= 4;
35
- } while (value > 0);
29
+ char palette[] = "0123456789abcdef";
30
+ char temp[10];
31
+ char *p = temp;
32
+ do {
33
+ *p++ = palette[value & 15];
34
+ value >>= 4;
35
+ } while (value > 0);
36
36
 
37
- int ret = (int) (p - temp);
37
+ int ret = (int)(p - temp);
38
38
 
39
- do {
40
- *dst++ = *--p;
41
- } while (p != temp);
39
+ do {
40
+ *dst++ = *--p;
41
+ } while (p != temp);
42
42
 
43
- return ret;
43
+ return ret;
44
44
  }
45
45
 
46
46
  inline int u64toa(uint64_t value, char *dst) {
47
- char temp[20];
48
- char *p = temp;
49
- do {
50
- *p++ = (char) ((value % 10) + '0');
51
- value /= 10;
52
- } while (value > 0);
47
+ char temp[20];
48
+ char *p = temp;
49
+ do {
50
+ *p++ = (char)((value % 10) + '0');
51
+ value /= 10;
52
+ } while (value > 0);
53
53
 
54
- int ret = (int) (p - temp);
54
+ int ret = (int)(p - temp);
55
55
 
56
- do {
57
- *dst++ = *--p;
58
- } while (p != temp);
56
+ do {
57
+ *dst++ = *--p;
58
+ } while (p != temp);
59
59
 
60
- return ret;
60
+ return ret;
61
61
  }
62
62
 
63
- }
64
- }
63
+ } // namespace utils
64
+ } // namespace uWS
65
65
 
66
66
  #endif // UWS_UTILITIES_H