Bool2Int converts bool to int
(flag bool)
| 342 | |
| 343 | // Bool2Int converts bool to int |
| 344 | func Bool2Int(flag bool) int { |
| 345 | if flag { |
| 346 | return 1 |
| 347 | } |
| 348 | return 0 |
| 349 | } |
| 350 | |
| 351 | // MaxInt32 : Return maximum of two integers provided via pointers. If one value |
| 352 | // is not defined, return the other one. If both are not defined, result is also |