mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
s/BUG_ON/assert/
This commit is contained in:
parent
96e05057a3
commit
581f4ea0c3
8 changed files with 13 additions and 26 deletions
|
|
@ -5,13 +5,13 @@
|
|||
*/
|
||||
|
||||
#define _POSIX_C_SOURCE 200809L
|
||||
#include <assert.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "common/bug-on.h"
|
||||
#include "xbm/parse.h"
|
||||
|
||||
static uint32_t color;
|
||||
|
|
@ -94,7 +94,7 @@ parse_xbm_builtin(const char *button, int size)
|
|||
{
|
||||
struct pixmap pixmap = { 0 };
|
||||
|
||||
BUG_ON(size > LABWC_BUILTIN_ICON_MAX_SIZE);
|
||||
assert(size <= LABWC_BUILTIN_ICON_MAX_SIZE);
|
||||
pixmap.width = size;
|
||||
pixmap.height = size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue