if (g_regex_match_simple ("^uint(8|16|32|64)$",
type_string, G_REGEX_CASELESS, 0)) {
- size = g_ascii_strtoull (&type_string[4], NULL, 10);
+ size = (gsize) g_ascii_strtoull (&type_string[4], NULL, 10);
switch (size) {
case 8:
}
} else if (g_regex_match_simple ("^int(8|16|32|64)$",
type_string, G_REGEX_CASELESS, 0)) {
- size = g_ascii_strtoull (&type_string[3], NULL, 10);
+ size = (gsize) g_ascii_strtoull (&type_string[3], NULL, 10);
switch (size) {
case 8:
}
} else if (g_regex_match_simple ("^float(32|64)$",
type_string, G_REGEX_CASELESS, 0)) {
- size = g_ascii_strtoull (&type_string[5], NULL, 10);
+ size = (gsize) g_ascii_strtoull (&type_string[5], NULL, 10);
switch (size) {
case 32:
strv = g_strsplit (sync->option, ":", 2);
if (strv[0] != NULL)
- sink_id = g_ascii_strtoull (strv[0], NULL, 10);
+ sink_id = (guint) g_ascii_strtoull (strv[0], NULL, 10);
else
sink_id = 0;
if (strv[1] != NULL)
- duration = g_ascii_strtoull (strv[1], NULL, 10);
+ duration = (guint) g_ascii_strtoull (strv[1], NULL, 10);
else
duration = G_MAXINT;
if (g_str_has_prefix (dir_entry->d_name, prefix) &&
g_ascii_isdigit (dir_entry->d_name[strlen (prefix)])) {
- id = g_ascii_strtoll (dir_entry->d_name + strlen (prefix), NULL, 10);
+ id = (gint) g_ascii_strtoll (dir_entry->d_name + strlen (prefix), NULL,
+ 10);
filename =
g_build_filename (dir_name, dir_entry->d_name, NAME_FILE, NULL);
}
g_free (filename);
- value = g_ascii_strtoull (file_contents, NULL, 10);
+ value = (guint) g_ascii_strtoull (file_contents, NULL, 10);
g_free (file_contents);
if (value == 1) {
channel_prop->enabled = TRUE;
}
g_free (filename);
- value = g_ascii_strtoull (file_contents, NULL, 10);
+ value = (guint) g_ascii_strtoull (file_contents, NULL, 10);
g_free (file_contents);
channel_prop->index = value;
* else verify the frequency received from user is supported by the device
*/
if (frequency == 0) {
- ret = g_ascii_strtoull (freq_list[0], NULL, 10);
+ ret = g_ascii_strtoll (freq_list[0], NULL, 10);
} else {
for (i = 0; i < num; i++) {
val = g_ascii_strtoull (freq_list[i], NULL, 10);
strv = g_strsplit_set (param, ",;", -1);
num = g_strv_length (strv);
for (i = 0; i < num; i++) {
- val = g_ascii_strtoull (strv[i], &endptr, 10);
+ val = g_ascii_strtoll (strv[i], &endptr, 10);
if (errno == ERANGE || errno == EINVAL || (endptr == strv[i]
&& val == 0)) {
GST_ERROR_OBJECT (self, "Cannot parse received custom channels %s",
if (!g_file_get_contents (filename, &file_contents, &length, NULL)) {
GST_WARNING_OBJECT (self, "Unable to read default buffer capacity.");
} else if (file_contents != NULL && length > 0) {
- self->default_buffer_capacity = g_ascii_strtoull (file_contents, NULL, 10);
+ self->default_buffer_capacity =
+ (guint) g_ascii_strtoull (file_contents, NULL, 10);
}
g_free (file_contents);
g_free (filename);
strv = g_strsplit (filter->option, ":", 2);
- filter->data_dimchg.from = g_ascii_strtoull (strv[0], NULL, 10);
- filter->data_dimchg.to = g_ascii_strtoull (strv[1], NULL, 10);
+ filter->data_dimchg.from = (int) g_ascii_strtoll (strv[0], NULL, 10);
+ filter->data_dimchg.to = (int) g_ascii_strtoll (strv[1], NULL, 10);
filter->loaded = TRUE;
g_strfreev (strv);
break;
strv = g_strsplit (filter->option, ":", NNS_TENSOR_RANK_LIMIT);
for (i = 0; i < NNS_TENSOR_RANK_LIMIT; i++) {
filter->data_transpose.trans_order[i] =
- g_ascii_strtoull (strv[i], NULL, 10);
+ (uint8_t) g_ascii_strtoull (strv[i], NULL, 10);
}
filter->loaded = TRUE;
dev0 = make_full_device (data_value, data_bits, FALSE, SKIP); \
ASSERT_NE (dev0, nullptr); \
/** setup */ \
- samp_freq = g_ascii_strtoll (samp_freq_avail[0], NULL, 10); \
+ samp_freq = (gint) g_ascii_strtoll (samp_freq_avail[0], NULL, 10); \
dev0->log_file = g_build_filename (dev0->base_dir, "temp.log", NULL); \
parse_launch = g_strdup_printf ( \
"%s device=%s silent=FALSE ! multifilesink location=%s", \
ASSERT_NE (dev0, nullptr);
/** setup */
num_scan_elements = dev0->num_scan_elements;
- samp_freq = g_ascii_strtoll (samp_freq_avail[0], NULL, 10);
+ samp_freq = (gint) g_ascii_strtoll (samp_freq_avail[0], NULL, 10);
dev0->log_file = g_build_filename (dev0->base_dir, "temp.log", NULL);
parse_launch =
g_strdup_printf
dev0 = make_full_device (data_value, data_bits);
ASSERT_NE (dev0, nullptr);
/** setup */
- samp_freq = g_ascii_strtoll (samp_freq_avail[0], NULL, 10);
+ samp_freq = (gint) g_ascii_strtoll (samp_freq_avail[0], NULL, 10);
dev0->log_file = g_build_filename (dev0->base_dir, "temp.log", NULL);
parse_launch =
g_strdup_printf
ASSERT_NE (dev0, nullptr);
/** setup */
num_scan_elements = dev0->num_scan_elements;
- samp_freq = g_ascii_strtoll (samp_freq_avail[samp_freq_idx], NULL, 10);
+ samp_freq = (gint) g_ascii_strtoll (samp_freq_avail[samp_freq_idx], NULL, 10);
dev0->log_file = g_build_filename (dev0->base_dir, "temp.log", NULL);
parse_launch =
g_strdup_printf