message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
[swig] Make sequenceToUnsignedIntVector accept any int-typed numpy array.
Test with python2.7 and python3.5 using numpy 1.11.1.
Fixes | @@ -1015,28 +1015,60 @@ struct IsDense : public Question<bool>
%{
static inline int sequenceToUnsignedIntVector(
PyObject *input,
- std11::shared_ptr<std::vector<unsigned int> > ptr)
+ std11::shared_ptr<std::vector<unsigned int> >& ptr)
{
if (!PySequence_Check(input)) {
PyErr_SetString(PyExc_TypeError,"Expecting a sequ... |
docs: add fullname of wsl for search | - [Amazon Linux 1](#amazon-linux-1---binary)
- [Amazon Linux 2](#amazon-linux-2---binary)
- [Alpine](#alpine---binary)
- - [WSL](#wsl---binary)
+ - [WSL](#wslwindows-subsystem-for-linux---binary)
* [Source](#source)
- [libbpf Submodule](#libbpf-submodule)
- [Debian](#debian---source)
@@ -271,16 +271,12 @@ sudo docker r... |
input: set missing collector id on socket type | @@ -879,6 +879,7 @@ int flb_input_set_collector_socket(struct flb_input_instance *in,
return -1;
}
+ collector->id = collector_id(in);
collector->type = FLB_COLLECT_FD_SERVER;
collector->cb_collect = cb_new_connection;
collector->fd_event = fd;
|
Arm code uses dwarf before arm for finding proc info, but unlike
dwarf code, ignores error return from dwarf_callback. Change arm
code to behave like dwarf code in that case. | @@ -523,6 +523,12 @@ arm_find_proc_info (unw_addr_space_t as, unw_word_t ip,
ret = dl_iterate_phdr (dwarf_callback, &cb_data);
SIGPROCMASK (SIG_SETMASK, &saved_mask, NULL);
+ if (ret <= 0)
+ {
+ Debug (14, "IP=0x%lx not found\n", (long) ip);
+ return -UNW_ENOINFO;
+ }
+
if (cb_data.single_fde)
/* already got the result... |
Soft diable qlog test if no chacha | @@ -6446,6 +6446,13 @@ int packet_trace_test()
#define QLOG_TRACE_BIN "qlog_trace.bin"
#define QLOG_TRACE_QLOG "qlog_trace.qlog"
+#ifdef PTLS_OPENSSL_HAVE_CHACHA20_POLY1305
+const int has_chacha_poly = 1;
+#else
+const int has_chacha_poly = 0;
+#endif
+
+
void qlog_trace_cid_fn(picoquic_quic_t* quic, picoquic_connectio... |
cheza: Config the SPI flash size to 1MB
The NPCX7M7WB has 1MB internal SPI flash. Config it correctly.
BRANCH=none
TEST=Checked the EC image size is 1MB. Ran flashrom to flash EC.
Tested-by: Philip Chen | #define NPCX7_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */
/* Internal SPI flash on NPCX7 */
-#define CONFIG_FLASH_SIZE (512 * 1024) /* It's really 1MB. */
+#define CONFIG_FLASH_SIZE (1024 * 1024) /* 1MB internal spi flash */
#define CONFIG_SPI_FLASH_REGS
#define CONFIG_SPI_FLASH_W25Q80 /* Internal SPI flash type. */
|
invoke: fix invalid pointer | @@ -8,6 +8,7 @@ typedef struct
{
Plugin * plugin;
KeySet * modules;
+ KeySet * exports;
}ElektraInvokeHandle;
void * elektraInvokeInitialize(const char *elektraPluginName)
@@ -47,24 +48,33 @@ const void * elektraInvokeGetFunction(void * invokeHandle, const char *elektraPl
return NULL;
}
Plugin * plugin = handle->plugin... |
Slightly simplify nbtree split point choice loop.
Spotted during post-commit review of the nbtree deduplication commit
(commit 0d861bbb). | @@ -820,18 +820,14 @@ _bt_bestsplitloc(FindSplitData *state, int perfectpenalty,
penalty = _bt_split_penalty(state, state->splits + i);
- if (penalty <= perfectpenalty)
- {
- bestpenalty = penalty;
- lowsplit = i;
- break;
- }
-
if (penalty < bestpenalty)
{
bestpenalty = penalty;
lowsplit = i;
}
+
+ if (penalty <= perf... |
sdspi_host: bugfix The clock may be sent out before the bus that was used immediately before is released.
Merges | @@ -75,6 +75,8 @@ static esp_err_t start_command_default(slot_info_t *slot, int flags, sdspi_hw_cm
static esp_err_t shift_cmd_response(sdspi_hw_cmd_t *cmd, int sent_bytes);
+static esp_err_t poll_busy(slot_info_t *slot, int timeout_ms, bool polling);
+
/// A few helper functions
/// Map handle to pointer of slot inform... |
YAML CPP: Fix minor spelling mistake in comment | @@ -30,7 +30,7 @@ using KeySetPair = pair<KeySet, KeySet>;
*
* @param keys This parameter contains the key set this function searches for array parents.
*
- * @return A key sets that contains all array parents stored in `keys`
+ * @return A key set that contains all array parents stored in `keys`
*/
KeySet splitArrayPa... |
removing abs~ & log~ | ==~ signal equal to
>=~ signal greater than or equal to
>~ signal greater than
-abs~ signal absolute
accum accumulate to a value
acos arc cosine function
acos~ signal arc cosine function
@@ -104,7 +103,6 @@ lessthaneq~ alias of <=~
line~ linear ramp generator
linedrive exponential scaler for [line~]
loadmess send messa... |
[Cita][#1193]modify valid_until_block function | @@ -139,7 +139,7 @@ BOAT_RESULT BoatCitaTxInit(BoatCitaWallet *wallet_ptr,
//quota
tx_ptr->rawtx_fields.quota = quota;
- // less than current blocknumber plus 100.
+ // valid_until_block = current blocknumber + 100.
retval_str = BoatCitaGetBlockNumber(tx_ptr);
result = BoatCitaParseRpcResponseStringResult(retval_str,
&... |
coroutine -> dill_coroutine | @@ -108,7 +108,7 @@ DILL_EXPORT int dill_hclose(int h);
/* Coroutines */
/******************************************************************************/
-#define coroutine __attribute__((noinline))
+#define dill_coroutine __attribute__((noinline))
DILL_EXPORT extern volatile void *dill_unoptimisable;
@@ -251,6 +251,7 ... |
MARS: New stream for GFAS reanalysis | 1252 gfas Global fire assimilation system
1253 ocda Ocean data assimilation
1254 olda Ocean Long window data assimilation
+1255 gfar Global fire assimilation system reanalysis
2231 cnrm Meteo France climate centre
2232 mpic Max Plank Institute
2233 ukmo UKMO climate centre
|
Fix mod-by-zero | @@ -21,20 +21,28 @@ static inline Term term_lowered(Term c) {
return (c >= 'A' && c <= 'Z') ? c - ('a' - 'A') : c;
}
+// Always returns 0 through (sizeof indexed_terms) - 1, and works on
+// capitalized terms as well. The index of the lower-cased term is returned if
+// the term is capitalized.
+static inline size_t se... |
Make aof buf alloc size more accurate in overhead
In theory we should have used zmalloc_usable_size, but it may be slower,
and now after there's no actual difference.
So this change isn't making a dramatic change. | @@ -342,7 +342,7 @@ size_t freeMemoryGetNotCountedMemory(void) {
}
}
if (server.aof_state != AOF_OFF) {
- overhead += sdsalloc(server.aof_buf)+aofRewriteBufferSize();
+ overhead += sdsAllocSize(server.aof_buf)+aofRewriteBufferSize();
}
return overhead;
}
|
unix: use (sane %ta) out of arvo | **
*/
#include "all.h"
-#include <ctype.h>
#include <ftw.h>
#include "vere/vere.h"
@@ -59,6 +58,7 @@ struct _u3_ufil;
c3_c* pax_c; // pier directory
c3_o alm; // timer set
c3_o dyr; // ready to update
+ u3_noun sat; // (sane %ta) handle
#ifdef SYNCLOG
c3_w lot_w; // sync-slot
struct _u3_sylo {
@@ -112,18 +112,9 @@ u3_u... |
get list in attach | @@ -2380,6 +2380,7 @@ list_t operator_get_list(const struct operator_s* op) {
auto data_perm = CAST_MAYBE(permute_data_s, op->data);
auto data_plus = CAST_MAYBE(operator_plus_s, op->data);
auto data_copy = CAST_MAYBE(copy_data_s, op->data);
+ auto data_attach = CAST_MAYBE(attach_data_s, op->data);
if (NULL != data_comb... |
test: fix typo in a function name | @@ -460,7 +460,7 @@ static void test_reset_during_loss(void)
static uint16_t test_close_error_code;
-static void test_closeed_by_remote(quicly_closed_by_remote_t *self, quicly_conn_t *conn, int err, uint64_t frame_type,
+static void test_closed_by_remote(quicly_closed_by_remote_t *self, quicly_conn_t *conn, int err, ui... |
power/rk3288.c: Format with clang-format
BRANCH=none
TEST=none | @@ -101,11 +101,9 @@ enum power_request_t {
static enum power_request_t power_request;
-
/* Forward declaration */
static void chipset_turn_off_power_rails(void);
-
/**
* Set the PMIC WARM RESET signal.
*
@@ -117,7 +115,6 @@ static void set_pmic_warm_reset(int asserted)
gpio_set_level(GPIO_PMIC_WARM_RESET_L, asserted ?... |
Add todo note for deleteUser() | @@ -1752,6 +1752,8 @@ int DeRestPluginPrivate::deleteUser(const ApiRequest &req, ApiResponse &rsp)
std::vector<ApiAuth>::iterator i = apiAuths.begin();
std::vector<ApiAuth>::iterator end = apiAuths.end();
+ // TODO compare error not found on hue bridge
+
for (; i != end; ++i)
{
if (username2 == i->apikey && i->state ==... |
ikev2: fix wrong index computation
Type: fix | @@ -3374,7 +3374,7 @@ ikev2_initiate_sa_init (vlib_main_t * vm, u8 * name)
ikev2_sa_free_proposal_vector (&proposals);
sa.is_initiator = 1;
- sa.profile_index = km->profiles - p;
+ sa.profile_index = p - km->profiles;
sa.is_profile_index_set = 1;
sa.state = IKEV2_STATE_SA_INIT;
sa.tun_itf = p->tun_itf;
|
Fix UAT track calculation when one velocity component = 0 | @@ -549,7 +549,7 @@ func parseDownlinkReport(s string, signalLevel int) {
}
}
if ns_vel_valid && ew_vel_valid {
- if ns_vel != 0 && ew_vel != 0 {
+ if ns_vel != 0 || ew_vel != 0 {
//TODO: Track type
track = uint16((360 + 90 - (int16(math.Atan2(float64(ns_vel), float64(ew_vel)) * 180 / math.Pi))) % 360)
}
|
Reordered cmake file from cli. | @@ -176,11 +176,22 @@ else()
set(GREP_COMMAND grep)
endif()
+include(TestEnvironmentVariables)
+
add_test(NAME ${target}
COMMAND ${TEST_COMMAND} "echo 'load mock a.mock\ninspect\nexit' | $<TARGET_FILE:${target}> | ${GREP_COMMAND} \"function three_str(a_str, b_str, c_str)\""
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}... |
reconstruct coil images | @@ -893,6 +893,21 @@ static nn_t reconet_apply_op_create(const struct reconet_s* config, int N, const
nn_apply = reconet_sort_args(nn_apply);
nn_apply = nn_get_wo_weights_F(nn_apply, config->weights, false);
+ if (config->coil_image) {
+
+ long cim_dims[N];
+ long img_dims[N];
+ long col_dims[N];
+
+ md_select_dims(N, ... |
tweak Makefile verbiage | @@ -181,18 +181,18 @@ image: require-qemu-binfmt
docs-generate: TAG := cribl/scope:docs-$(ARCH)
docs-generate: require-docker-buildx-builder
- @echo Building the AppScope Document generator
+ @echo Building the AppScope docs generator
@docker buildx build \
--tag $(TAG) \
--platform linux/$(PLATFORM_$(ARCH)) \
--file d... |
prun: verify_launcher should be verify_launcher_avail | @@ -105,11 +105,11 @@ function launch_mpich () {
verify_launcher_avail srun
cmd="srun --mpi=pmix $@"
else
- verify_launcher mpiexec.hydra
+ verify_launcher_avail mpiexec.hydra
cmd="mpiexec.hydra -bootstrap slurm $@"
fi
elif [[ ${RM} == "pbspro" ]];then
- verify_launcher mpiexec.hydra
+ verify_launcher_avail mpiexec.hyd... |
peview: Add ctrl+a and ctrl+c events to pdb tab | @@ -365,6 +365,37 @@ BOOLEAN NTAPI PvSymbolTreeNewCallback(
}
return TRUE;
case TreeNewKeyDown:
+ {
+ PPH_TREENEW_KEY_EVENT keyEvent = Parameter1;
+
+ if (!keyEvent)
+ break;
+
+ switch (keyEvent->VirtualKey)
+ {
+ case 'C':
+ {
+ if (GetKeyState(VK_CONTROL) < 0)
+ {
+ PPH_STRING text;
+
+ text = PhGetTreeNewText(hwnd,... |
Add AgentRequest and its ID | @@ -113,6 +113,7 @@ public enum AgentId : uint {
ScreenLog = 35,
// NPCTrade,
+ Request = 36,
Status = 37,
Map = 38,
Loot = 39, //NeedGreed
|
Update netdb.txt
change 14.152.81.132 >> 117.27.159.97 | 5.189.132.84:16775
-14.152.81.132:13655
45.76.37.252:13654
47.100.202.206:56600
47.100.254.68:13654
104.40.243.113:31337
109.196.45.218:3355
111.231.212.158:16775
+117.27.159.97:13655
119.28.37.154:16775
124.160.119.90:13655
124.161.87.210:13655
|
Bugfix for counter reads from CP | @@ -208,31 +208,31 @@ for table in hlir.tables:
#} #endif
#} }
-hack_i = 0
-for smem in unique_everseen([smem for table, smem in hlir.all_counters]):
+hack_i={}
+for table, smem in hlir.all_counters:
for target in smem.smem_for:
if not smem.smem_for[target]:
continue
- hack_i += 1
- if hack_i%2==1:
for c in smem.compon... |
updates to correlation benchmarking file | @@ -82,8 +82,7 @@ def set_up(request):
th, xi = np.loadtxt(fname, unpack=True)
return th, xi
- # DL: need to add a bunch of benchmarks here but also make sure the
- # names are correct.
+ # DL: need to make sure the names are correct.
pre = dirdat + 'run_'
post = nztyp + "_log_wt_"
bms = {}
@@ -103,7 +102,7 @@ def set_... |
Remove assertion => fix debug spec tests | @@ -236,7 +236,7 @@ M3Result EvaluateExpression (IM3Module i_module, void * o_expressed, u8 i_type
M3Result InitMemory (IM3Runtime io_runtime, IM3Module i_module)
{
- M3Result result = c_m3Err_none; d_m3Assert (not io_runtime->memory.wasmPages);
+ M3Result result = c_m3Err_none; //d_m3Assert (not io_runtime->memory.was... |
don't do payment checks early on in long chains as the mn list is stale
payment for blocks in the past is confirmed by network anyway | @@ -2478,7 +2478,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex, bool fJustCheck)
}
}
- if(pindex->GetBlockTime() > GetTime() - 30*nCoinbaseMaturity && !IsInitialBlockDownload() && FortunastakePayments == true)
+ if(pindex->GetBlockTime() > GetTime() - 30*nCoinbaseMaturity && (pindex->nHeight < pindexB... |
ev3dev/modules/nxtdevices: add vernier adapter | """Classes for LEGO MINDSTORMS NXT Devices."""
+
from nxtdevices_c import *
+from pybricks.iodevices import AnalogSensor
+
+
+class VernierAdapter(AnalogSensor):
+
+ def __init__(self, port, conversion=None):
+ # create AnalogSensor object
+ super().__init__(port, False)
+
+ # Store conversion function if given
+ if co... |
grib_get_data: iterator consumes vast amounts of memory when Ni is missing | @@ -163,8 +163,18 @@ static int init(grib_iterator* i, grib_handle* h, grib_arguments* args)
return ret;
if ((ret = grib_get_long_internal(h, s_Ni, &Ni)))
return ret;
+ if (grib_is_missing(h, s_Ni, &ret) && ret == GRIB_SUCCESS) {
+ grib_context_log(h->context, GRIB_LOG_ERROR, "Key %s cannot be missing for a regular gri... |
Check Bashisms: Use `egrep` regex for GNU find
After this update the `find` command used in the script should work the
same on Linux and macOS.
This commit closes | @@ -8,12 +8,13 @@ command -v checkbashisms >/dev/null 2>&1 || { echo "checkbashisms command needed
cd "@CMAKE_SOURCE_DIR@"
-find -version > /dev/null 2>&1 > /dev/null && FIND=find || FIND='find -E'
+# Use (non-emacs) extended regex for GNU find or BSD find
+find -version > /dev/null 2>&1 > /dev/null && FIND='find scrip... |
Fix test_ns_utf16_doctype() to work in builds | @@ -7811,7 +7811,11 @@ START_TEST(test_ns_utf16_doctype)
"\0x\0m\0l\0n\0s\0:\0f\0o\0o\0=\0'\0U\0R\0I\0'\0>"
"\0&\0b\0a\0r\0;"
"\0<\0/\0f\0o\0o\0:\x0e\x04\0>";
- const XML_Char *expected = "URI \xe0\xb8\x84";
+#ifdef XML_UNICODE
+ const XML_Char *expected = XCS("URI \x0e04");
+#else
+ const XML_Char *expected = XCS("URI... |
options/ansi: Implement scanf | @@ -684,9 +684,12 @@ static int do_scanf(H &handler, const char *fmt, __gnuc_va_list args) {
return match_count;
}
-int scanf(const char *__restrict, ...) {
- __ensure(!"Not implemented");
- __builtin_unreachable();
+int scanf(const char *__restrict format, ...) {
+ va_list args;
+ va_start(args, format);
+ int result ... |
Fix ordering problem with +intercepted-scry.
This fixes generators which scry into %a. | ::
~| hoon-version=hoon-version
?> ?=(?(%143 %151) hoon-version)
+ :: if the actual scry produces a value, use that value; otherwise use local
+ ::
+ =/ scry-response (scry +<.$)
+ ::
+ ?^ scry-response
+ scry-response
::
=/ vane=(unit ?(%c %g)) ((soft ?(%c %g)) (end 3 1 term))
?~ vane
p.r.beam
::
=/ =build [date %scry... |
admin/ohpc-filesystem: include url for this package | @@ -15,6 +15,7 @@ Summary: Common top-level OpenHPC directories
Group: ohpc/admin
License: ASL 2.0
+URL: https://github.com/openhpc/ohpc
Source0: OHPC_setup_compiler
Source1: OHPC_setup_mpi
Source2: ohpc-find-requires
|
status: print mmap_errors with the %zu specifier | @@ -98,13 +98,13 @@ static h2o_iovec_t events_status_final(void *priv, h2o_globalconf_t *gconf, h2o_
" \"http2.read-closed\": %" PRIu64 ", \n"
" \"http2.write-closed\": %" PRIu64 ", \n"
" \"ssl.errors\": %" PRIu64 ", \n"
- " \"memory.mmap_errors\": %" PRIu64 "\n",
+ " \"memory.mmap_errors\": %zu\n",
H1_AGG_ERR(400), H1... |
index.md: update the Espressif references to reflect readme.md | @@ -16,7 +16,7 @@ Currently MCUboot works with the following operating systems and SoCs:
- [Apache NuttX](https://nuttx.apache.org/)
- [RIOT](https://www.riot-os.org/)
- [Mbed OS](https://os.mbed.com/)
-- [Espressif IDF](https://idf.espressif.com/)
+- [Espressif](https://www.espressif.com/)
- [Cypress/Infineon](https:/... |
config tool: update cpu affinity check algorithm
pcpu in pre-launched RTVM cannot share with other VM | </xs:annotation>
</xs:assert>
- <xs:assert test="every $pcpu in /acrn-config/vm[load_order = 'PRE_LAUNCHED_VM']//cpu_affinity/pcpu_id satisfies
+ <xs:assert test="every $pcpu in /acrn-config/vm[load_order = 'PRE_LAUNCHED_VM' and vm_type = 'RTVM']//cpu_affinity/pcpu_id satisfies
count(/acrn-config/vm[@id != $pcpu/ancest... |
build: bump to v1.7.0 | @@ -3,7 +3,7 @@ project(fluent-bit)
# Fluent Bit Version
set(FLB_VERSION_MAJOR 1)
-set(FLB_VERSION_MINOR 6)
+set(FLB_VERSION_MINOR 7)
set(FLB_VERSION_PATCH 0)
set(FLB_VERSION_STR "${FLB_VERSION_MAJOR}.${FLB_VERSION_MINOR}.${FLB_VERSION_PATCH}")
|
Long word breaking algorithm | @@ -175,6 +175,28 @@ uint16_t lv_txt_get_next_line(const char * txt, const lv_font_t * font,
/*If the txt is too long then finish, this is the line end*/
if(cur_w > max_width) {
+ /* Continue searching for next breakable character to see if the next word will fit */
+ uint32_t i_tmp = i;
+ cur_w = 0;
+ while(txt[i_tmp]... |
Added single-line duplicate values check for ID
According to VCF 4.3 specifications, ID cannot have duplicate values, so added a new check for duplicate values. If any duplicated IDs are found in a single line (semicolon separated list), then an error is thrown and file is declared as invalid. | @@ -119,6 +119,14 @@ namespace ebi
throw new IdBodyError{line, "ID must not contain semicolons or whitespaces"};
}
}
+
+ std::map<std::string, int> counter;
+ for (auto id = ids.begin(); id != ids.end(); ++id) {
+ counter[*id]++;
+ if (counter[*id] >= 2) {
+ throw new IdBodyError{line, "ID must not have duplicate value... |
Add 6503 error for plugin error | @@ -521,6 +521,7 @@ The following standard Status Words are returned for all APDUs - some specific S
| *SW* | *Description*
| 6501 | TransactionType not supported
| 6502 | Output buffer too small for snprintf input
+| 6503 | Plugin error
| 6700 | Incorrect length
| 6982 | Security status not satisfied (Canceled by user... |
proc/process.c: initialize process' zombies | @@ -103,6 +103,7 @@ int proc_start(void (*initthr)(void *), void *arg, const char *path)
process->ports = NULL;*/
process->ports = NULL;
+ process->zombies = NULL;
process->sigpend = 0;
process->sigmask = 0;
@@ -322,6 +323,7 @@ int proc_vfork(void)
process->sigpend = 0;
process->sigmask = 0;
process->sighandler = NULL;... |
Avoid error messages when subscribing before starting facil.io | @@ -579,24 +579,31 @@ Cluster Engine
/* Must subscribe channel. Failures are ignored. */
void pubsub_en_cluster_subscribe(const pubsub_engine_s *eng, FIOBJ channel,
uint8_t use_pattern) {
+ if (facil_is_running()) {
facil_cluster_send((use_pattern ? PUBSUB_FACIL_CLUSTER_PATTERN_SUB_FILTER
: PUBSUB_FACIL_CLUSTER_CHANNEL... |
Solved minor bugs of the previous commit in python loader. | @@ -1998,7 +1998,7 @@ int py_loader_impl_load_from_file_relative(loader_impl_py py_impl, loader_impl_p
else
{
/* Stop loading if we found an exception like SyntaxError, continue if the file is not found */
- if (!py_loader_impl_import_exception(*exception))
+ if (*exception != NULL && !py_loader_impl_import_exception(*... |
[io] fix small bug in default simulation class and explode version | @@ -3083,7 +3083,7 @@ class MechanicsHdf5Runner(siconos.io.mechanics_hdf5.MechanicsHdf5):
osnspb._stepcounter = self._k
if self._run_options.get('explode_Newton_solve'):
- if(self._time_stepping_class == TimeStepping):
+ if(self._time_stepping == sk.TimeStepping):
self.log(self.explode_Newton_solve, with_timer,
before=... |
Documentation for Ubuntu Bionic Packages. | @@ -23,6 +23,16 @@ For the following Linux distributions and package managers 0.8 packages are avai
For [OpenSUSE, CentOS, Fedora, RHEL and SLE](https://build.opensuse.org/package/show/home:bekun:devel/elektra)
Kai-Uwe Behrmann kindly provides packages [for download](http://software.opensuse.org/download.html?project=h... |
Fixed json file for 1.4.6 released. | },
"url": "https://github.com/ROBOTIS-GIT/OpenCR/releases/download/1.4.6/opencr_core_1.4.6.tar.bz2",
"archiveFileName": "opencr_core_1.4.6.tar.bz2",
- "checksum": "SHA-256:59F903350D0767BDB4C8575C43CB3EF5EB80D425B0FFE7210A0E4BF9138379A0",
- "size": "1961278",
+ "checksum": "SHA-256:B7E696AC7673925AD2C5CC82E43CEA87F0039... |
build: add more src dirs for generate_json.py
Because file vpe.api is in src/vpp/api/
and memclnt.api is in src/vlibmemory/.
Also removed api_types, as iteration can be done over output_dir_map.
Type: fix
Fixes:
Ticket: | @@ -21,20 +21,23 @@ BASE_DIR = subprocess.check_output('git rev-parse --show-toplevel',
vppapigen_bin = pathlib.Path(
'%s/src/tools/vppapigen/vppapigen.py' % BASE_DIR).as_posix()
-api_types = ['vnet', 'plugins']
src_dir_depth = 3
output_path = pathlib.Path(
'%s/build-root/install-vpp-native/vpp/share/vpp/api/' % BASE_D... |
BugID:16944925:support pca10040e kv;dir mcu | @@ -48,9 +48,9 @@ OUTPUT_FORMAT ("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
MEMORY
{
- FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x30000
- /* 0x7D000 ~ 0x7F000 is used for KV module temporary */
- BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0007F000, LENGTH = 0x1000
+ FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x... |
block comment works | @@ -404,24 +404,59 @@ static bool isWord(char symbol) {return isLetter(symbol) || isNumber(symbol);}
#include <ctype.h>
-static inline bool isLineEnd(char c) {return c == '\n' || c == '\0';}
+static inline bool is_lineend(char c) {return c == '\n' || c == '\0';}
static void parse(const char* start, u8* color)
{
const c... |
Now file will be correctly deleted after exit. | @@ -45,13 +45,14 @@ int xdag_free_all(void)
#include <errno.h>
#define MEM_PORTION ((size_t)1 << 25)
+#define TMPFILE_TEMPLATE "xdag-tmp-XXXXXX"
static int g_fd = -1;
static size_t g_pos = 0, g_fsize = 0, g_size = 0;
static void *g_mem;
static pthread_mutex_t g_mem_mutex = PTHREAD_MUTEX_INITIALIZER;
static char g_tmpfi... |
Add testcases for EVP_PKEY_get1_encoded_public_key | @@ -897,6 +897,7 @@ static int test_EC_priv_pub(void)
EVP_PKEY *params_and_keypair = NULL;
BIGNUM *priv = NULL;
int ret = 0;
+ unsigned char *encoded = NULL;
/*
* Setup the parameters for our pkey object. For our purposes they don't
@@ -1005,6 +1006,17 @@ static int test_EC_priv_pub(void)
|| !TEST_int_gt(EVP_PKEY_eq(pa... |
[ci] Fix Halide's library install directory for GitLab | @@ -189,10 +189,7 @@ apps-halide:
- git submodule update --init --recursive -- hardware/deps/*
- make patch-hw
- cd hardware
- - |
- for APP in ${APPS}; do
- app=${APP} make simc
- done
+ - app=halide-2d_convolution make simc
variables:
COMPILER: "llvm"
APP: "halide-2d_convolution"
|
windows/msvc: Use same default python command as core. | <PyQstrDefs>$(PySrcDir)qstrdefs.h</PyQstrDefs>
<QstrDefsCollected>$(DestDir)qstrdefscollected.h</QstrDefsCollected>
<QstrGen>$(DestDir)qstrdefs.generated.h</QstrGen>
+ <PyPython Condition="'$(PyPython)' == ''">$(MICROPY_CPYTHON3)</PyPython>
<PyPython Condition="'$(PyPython)' == ''">python</PyPython>
<CLToolExe Conditio... |
[mod_magnet] ignore 1xx return in response start
ignore 1xx return code from lua in response start phase.
Since response is about to start, send any added/modified headers
along with final response. (If we did not ignore, then 1xx return
code from lua would incorrectly overwrite the final response status.) | @@ -2385,7 +2385,8 @@ static handler_t magnet_attract(request_st * const r, plugin_data * const p, scr
}
result = HANDLER_FINISHED;
- } else if (lua_return_value >= 100) {
+ } else if (lua_return_value >= 100 && p->conf.stage != -1) {
+ /*(skip for response-start; send response as-is w/ added headers)*/
/*(custom lua c... |
Add --clean and --clean-only options to test.pl. | @@ -74,6 +74,8 @@ test.pl [options]
--run execute only the specified test run
--dry-run show only the tests that would be executed but don't execute them
--no-cleanup don't cleanup after the last test is complete - useful for debugging
+ --clean clean working and result paths for a completely fresh build
+ --clean-only... |
sysrepo DOC wrong argument name | @@ -1124,7 +1124,7 @@ typedef enum sr_ev_notif_type_e {
* @param[in] private_data Private context opaque to sysrepo,
* as passed to ::sr_event_notif_subscribe call.
*/
-typedef void (*sr_event_notif_cb)(sr_session_ctx_t *session, const sr_ev_notif_type_t notif_type, const char *xpath,
+typedef void (*sr_event_notif_cb)... |
Guybrush: Correct zephyr power interrupts
Correct the S5 PGOOD interrupt to go to the baseboard function to
process it.
BRANCH=None
TEST=builds, continues to "boot" to S0 | @@ -49,7 +49,7 @@ enum power_signal {
power_signal_interrupt) \
GPIO_INT(GPIO_PCH_SLP_S0_L, GPIO_INT_EDGE_BOTH, \
power_signal_interrupt) \
- GPIO_INT(GPIO_S5_PGOOD, GPIO_INT_EDGE_BOTH, extpower_interrupt) \
+ GPIO_INT(GPIO_S5_PGOOD, GPIO_INT_EDGE_BOTH, baseboard_en_pwr_s0) \
GPIO_INT(GPIO_S0_PGOOD, GPIO_INT_EDGE_BOTH,... |
bn: fix BN_DEBUG + BN_DEBUG_RAND support
Couple of updates to make this code work properly again;
* use OPENSSL_assert() instead of assert() (and #include <assert.h>)
* the circular-dependency-avoidance uses RAND_bytes() (not pseudo) | @@ -146,13 +146,10 @@ extern "C" {
# ifdef BN_DEBUG
-/* We only need assert() when debugging */
-# include <assert.h>
-
# ifdef BN_DEBUG_RAND
/* To avoid "make update" cvs wars due to BN_DEBUG, use some tricks */
-# ifndef RAND_pseudo_bytes
-int RAND_pseudo_bytes(unsigned char *buf, int num);
+# ifndef RAND_bytes
+int ... |
CAN flasher: add timeout to CanHandle on transmit
add timeout to canhandle | @@ -8,11 +8,17 @@ class CanHandle(object):
self.bus = bus
def transact(self, dat):
- self.p.isotp_send(1, dat, self.bus, recvaddr=2)
-
def _handle_timeout(signum, frame):
- # will happen on reset
- raise Exception("timeout")
+ # will happen on reset or can error
+ raise TimeoutError
+
+ signal.signal(signal.SIGALRM, _h... |
forget to assign spd_index to config | @@ -78,6 +78,8 @@ ipsec_set_interface_spd (vlib_main_t * vm, u32 sw_if_index, u32 spd_id,
vnet_feature_enable_disable ("ip6-output", "ipsec-output-ip6", sw_if_index,
is_add, 0, 0);
+ config.spd_index = spd_index;
+
/* enable IPsec on RX */
vnet_feature_enable_disable ("ip4-unicast", "ipsec-input-ip4", sw_if_index,
is_a... |
GA: Build shared/static lib with float/double. | -name: CMake
+name: CI
on: [push]
@@ -11,6 +11,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
+ shared: [On, Off]
+ float: [On, Off]
steps:
- uses: actions/checkout@v2
@@ -24,7 +26,7 @@ jobs:
# Note the current convention is to use the -S and -B options here to specify source
# and build... |
kernel/binary_manager: Fix a bug about the length of binary file path
A path of binary file has a BINARY_PATH_LEN length so it should be fixed to BINARY_PATH_LEN. | @@ -69,7 +69,7 @@ static int binary_manager_clear_binfile(int bin_idx)
/* Remove binary file which is not running */
if (DIRENT_ISFILE(entryp->d_type) && !strncmp(entryp->d_name, bin_name, name_len) \
&& entryp->d_name[name_len] == '_' && strncmp(entryp->d_name, running_file, strlen(running_file))) {
- snprintf(filepat... |
Fix memory leak when a menu is defined multiple times. | @@ -136,7 +136,7 @@ void SetRootMenu(const char *indexes, Menu *m)
unsigned y;
char found = 0;
for(y = 0; y < ROOT_MENU_COUNT; y++) {
- if(x != y && rootMenu[y] == rootMenu[x]) {
+ if(index != y && rootMenu[y] == rootMenu[index]) {
found = 1;
break;
}
|
Fix show_incremental_sort_info with force_parallel_mode
When executed with force_parallel_mode=regress, the function was exiting
too early and thus failed to print the worker stats. Fixed by making it
more like show_sort_info.
Discussion: | @@ -2880,9 +2880,11 @@ show_incremental_sort_info(IncrementalSortState *incrsortstate,
fullsortGroupInfo = &incrsortstate->incsort_info.fullsortGroupInfo;
- if (!(es->analyze && fullsortGroupInfo->groupCount > 0))
+ if (!es->analyze)
return;
+ if (fullsortGroupInfo->groupCount > 0)
+ {
show_incremental_sort_group_info(... |
ut: fix touch sensor denoise ci fail | @@ -1412,13 +1412,13 @@ TEST_CASE("Touch Sensor denoise test (cap, level)", "[touch]")
TEST_ESP_OK( test_touch_denoise(val_2, NULL, TOUCH_PAD_DENOISE_BIT8, TOUCH_PAD_DENOISE_CAP_L0) );
TEST_ESP_OK( test_touch_denoise(val_3, NULL, TOUCH_PAD_DENOISE_BIT12, TOUCH_PAD_DENOISE_CAP_L0) );
- if ((denoise_val[0] & 0xFF) < (0xF... |
fix the sync bar logic | @@ -843,7 +843,7 @@ void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks)
text = tr("%n day(s) ago","",secs/(60*60*24));
}
- if (IsInitialBlockDownload() || count < nTotalBlocks-30 || secs > 30*30) // if we're in initial download or more than 30 blocks behind
+ if (IsInitialBlockDownload() || count < nTotalBlocks-... |
Added TLS specific src string for LogStream integ. | @@ -2467,17 +2467,25 @@ doPayload()
net_info *net = &pinfo->net;
size_t hlen = 1024;
char pay[hlen];
- char *srcstr = NULL, rx[]="rx", tx[]="tx", none[]="none";
+ char *srcstr = NULL,
+ netrx[]="netrx", nettx[]="nettx", none[]="none",
+ tlsrx[]="tlsrx", tlstx[]="tlstx";
switch (pinfo->src) {
case NETTX:
+ srcstr = nett... |
improve debugging message | @@ -6448,10 +6448,15 @@ static size_t fio_mem_block_count;
"(fio) Total memory blocks allocated before cleanup %zu\n" \
" Maximum memory blocks allocated at a single time %zu\n", \
fio_mem_block_count, fio_mem_block_count_max)
+#define FIO_MEMORY_PRINT_BLOCK_STAT_END() \
+ FIO_LOG_INFO("(fio) Total memory blocks alloca... |
fix BeastChakraType | @@ -91,8 +91,8 @@ namespace FFXIVClientStructs.FFXIV.Client.Game.Gauge
{
None = 0,
Coeurl = 1,
- Raptor = 2,
- OpoOpo = 3,
+ OpoOpo = 2,
+ Raptor = 3,
}
[Flags]
|
cirrus: bump Fedora to version 36 | -FROM fedora:35
+FROM fedora:36
RUN dnf upgrade --refresh -y && dnf install -y \
augeas-devel \
@@ -16,7 +16,7 @@ RUN dnf upgrade --refresh -y && dnf install -y \
git \
glib2 \
gpgme-devel \
- java-11-openjdk-devel \
+ java-17-openjdk-devel \
jna \
libasan \
libcurl-devel \
|
fix typo in specification of VmaAlignDown | @@ -3341,7 +3341,7 @@ static inline T VmaAlignUp(T val, T alignment)
return (val + alignment - 1) & ~(alignment - 1);
}
-// Aligns given value down to nearest multiply of align value. For example: VmaAlignUp(11, 8) = 8.
+// Aligns given value down to nearest multiply of align value. For example: VmaAlignDown(11, 8) = 8... |
Fixed VRAM organization for Bitmap mode and used new mul/div functions | @@ -146,6 +146,9 @@ void BMP_end()
// try to pack memory free blocks (before to avoid memory fragmentation)
MEM_pack();
+ // restore 64x32 cells sized plane
+ VDP_setPlaneSize(64, 32, TRUE);
+
// we can re enable ints
// FIXME: for some reason disabling interrupts generally break BMP init :-/
// SYS_enableInts();
@@ -1... |
fix missing dependencies for .symabis command | @@ -4785,7 +4785,8 @@ macro _GO_GEN_COVER_GO(GO_FILE, VAR_ID) {
}
macro _GO_COMPILE_SYMABIS(ASM_FILES...) {
- .CMD=${hide:GO_FAKEID} $GO_TOOLS_ROOT/pkg/tool/${GO_HOST_OS}_${GO_HOST_ARCH}/asm -trimpath $ARCADIA_BUILD_ROOT ${hide;input:"build/scripts/go_fake_include/go_asm.h"} -I $ARCADIA_ROOT/build/scripts/go_fake_inclu... |
stm32: implement reboot wait-ext
This was missed on stm32, but is helpful for servod
to work reliably.
TEST=it waits 10 sec for external reboot. | @@ -398,6 +398,15 @@ void system_reset(int flags)
while (1)
;
} else {
+ if (flags & SYSTEM_RESET_WAIT_EXT) {
+ int i;
+
+ /* Wait 10 seconds for external reset */
+ for (i = 0; i < 1000; i++) {
+ watchdog_reload();
+ udelay(10000);
+ }
+ }
CPU_NVIC_APINT = 0x05fa0004;
}
|
Clean up the code
remove redundant local buffer
fix code style | @@ -151,7 +151,6 @@ static int ssl_tls13_generate_and_write_ecdh_key_exchange(
psa_status_t status = PSA_ERROR_GENERIC_ERROR;
int ret = MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE;
psa_key_attributes_t key_attributes;
- unsigned char own_pubkey[MBEDTLS_PSA_MAX_EC_PUBKEY_LENGTH];
size_t own_pubkey_len;
mbedtls_ssl_handshake_par... |
Fix obsolete comment in xlogutils.c.
Oversight in commit | @@ -260,10 +260,9 @@ XLogCheckInvalidPages(void)
* determines what needs to be done to redo the changes to it. If the WAL
* record includes a full-page image of the page, it is restored.
*
- * 'lsn' is the LSN of the record being replayed. It is compared with the
- * page's LSN to determine if the record has already be... |
IAS: fix is_lc. | @@ -230,7 +230,6 @@ static unsigned int ias_choose_core(struct ias_data *sd, bool lc)
static int ias_add_kthread(struct proc *p)
{
struct ias_data *sd = (struct ias_data *)p->policy_data;
- bool is_lc = sd->threads_active < sd->threads_guaranteed;
unsigned int core;
/* check if we're constrained by the thread limit */
... |
do not restore old SIOCSIWMODE if --ignore_warning is used | @@ -360,7 +360,10 @@ if(fd_socket > 0)
memset(&ifr, 0, sizeof(ifr));
strncpy(ifr.ifr_name, interfacename, IFNAMSIZ -1);
ioctl(fd_socket, SIOCSIFFLAGS, &ifr);
+ if(ignorewarningflag == false)
+ {
ioctl(fd_socket, SIOCSIWMODE, &iwr_old);
+ }
ioctl(fd_socket, SIOCSIFFLAGS, &ifr_old);
if(close(fd_socket) != 0)
{
|
[chainmaker][#675]add BOAT_RESULT BoatChainmakerWalletSetHostName(BoatHlchainmakerWallet *wallet_ptr, const BCHAR *host_name_ptr) function declaration | @@ -33,6 +33,8 @@ api_chainmaker.c defines the Ethereum wallet API for BoAT IoT SDK.
static BOAT_RESULT BoatChainmakerWalletSetOrgId(BoatHlchainmakerWallet *wallet_ptr, const BCHAR *org_id_ptr);
static BOAT_RESULT BoatChainmakerWalletSetChainId(BoatHlchainmakerWallet *wallet_ptr, const BCHAR *chain_id_ptr);
+static BOA... |
Fix a mem leak in evp_pkey_copy_downgraded()
If we get a failure during evp_pkey_copy_downgraded() and on entry *dest
was NULL then we leak the EVP_PKEY that was automatically allocated and
stored in *dest.
Found due to this comment: | @@ -1973,6 +1973,8 @@ void *evp_pkey_export_to_provider(EVP_PKEY *pk, OSSL_LIB_CTX *libctx,
#ifndef FIPS_MODULE
int evp_pkey_copy_downgraded(EVP_PKEY **dest, const EVP_PKEY *src)
{
+ EVP_PKEY *allocpkey = NULL;
+
if (!ossl_assert(dest != NULL))
return 0;
@@ -2003,7 +2005,7 @@ int evp_pkey_copy_downgraded(EVP_PKEY **des... |
sse: fix native alias for _mm_cvttss_si32
Fixes | @@ -1629,7 +1629,7 @@ simde_mm_cvtt_ss2si (simde__m128 a) {
}
#if defined(SIMDE_X86_SSE_ENABLE_NATIVE_ALIASES)
# define _mm_cvtt_ss2si(a) simde_mm_cvtt_ss2si((a))
-# define _mm_cvttss_si32(a) simde_mm_cvttss_si32((a))
+# define _mm_cvttss_si32(a) simde_mm_cvtt_ss2si((a))
#endif
SIMDE_FUNCTION_ATTRIBUTES
|
interface: show if tx queue is shared
Type: improvement | @@ -212,14 +212,16 @@ format_vnet_hw_interface (u8 * s, va_list * args)
if (vec_len (hi->tx_queue_indices))
{
s = format (s, "\n%UTX Queues:", format_white_space, indent + 2);
- s = format (s, "\n%U%-6s%-15s", format_white_space, indent + 4, "queue",
- "thread(s)");
+ s = format (s, "\n%U%-6s%-7s%-15s", format_white_sp... |
capp: Add lid definition for P9 DD-2.2
Update fsp_lid_map to include CAPP ucode lid for phb4-chipid ==
0x202d1 that corresponds to P9 DD-2.2 chip. | @@ -2362,6 +2362,7 @@ int fsp_fetch_data_queue(uint8_t flags, uint16_t id, uint32_t sub_id,
#define CAPP_IDX_NIMBUS_DD10 0x100d1
#define CAPP_IDX_NIMBUS_DD20 0x200d1
#define CAPP_IDX_NIMBUS_DD21 0x201d1
+#define CAPP_IDX_NIMBUS_DD22 0x202d1
static struct {
enum resource_id id;
@@ -2378,6 +2379,7 @@ static struct {
{ RE... |
when doing SetToSelection, skip any selected items
that have the asset as a DAG parent, since that resulted in a DG loop and wierd errors. | @@ -13,6 +13,7 @@ stringArrayReverseAppend(string $to[], int $end, string $from[])
proc int
validateInputObjects(string $objects[],
+ string $targetAsset,
string $validObjects[],
string $multiObjects[],
string $invalidObjects[])
@@ -37,6 +38,19 @@ validateInputObjects(string $objects[],
continue;
}
+ // if object is th... |
Fix data race on stats due to the logging thread being started before the stats are initialized | @@ -9536,8 +9536,8 @@ int main (int argc, char **argv) {
}
/* initialize other stuff */
- logger_init();
stats_init();
+ logger_init();
conn_init();
bool reuse_mem = false;
void *mem_base = NULL;
|
Fixing build error on Visual Studio 2010 | @@ -164,11 +164,12 @@ void errorLookup(int errcode, char *errmsg, int len);
int DLLEXPORT ENepanet(const char *f1, const char *f2, const char *f3, void (*pviewprog)(char *))
{
int errcode = 0;
+ EN_Project *p = NULL;
ERRCODE(EN_createproject(&_defaultModel));
ERRCODE(EN_open(_defaultModel, f1, f2, f3));
- EN_Project *p... |
diff FEATURE check required meta when adding into diff | @@ -82,6 +82,21 @@ lyd_diff_add(const struct lyd_node *node, enum lyd_diff_op op, const char *orig_
assert(diff);
+ /* replace leaf always needs orig-default and orig-value */
+ assert((node->schema->nodetype != LYS_LEAF) || (op != LYD_DIFF_OP_REPLACE) || (orig_default && orig_value));
+
+ /* create on userord needs ke... |
Setup tmate session | @@ -47,3 +47,6 @@ jobs:
DEBIAN_FRONTEND: noninteractive
NODE_PATH: /usr/lib/node_modules
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
+ - name: Setup tmate session
+ uses: mxschmitt/action-tmate@v3
+ timeout-minutes: 30
\ No newline at end of file
|
GitHub Action failure - attempt to fix | @@ -28,5 +28,5 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_PULL_TOKEN: ${{ secrets.GIT_PULL_TOKEN }}
- run: %GITHUB_WORKSPACE%\build-tests.cmd ${{ matrix.arch }} ${{ matrix.config }}
-
+ run: |
+ $GITHUB_WORKSPACE\\build-tests.cmd ${{ matrix.arch }} ${{ matrix.config }}
|
doc: improvements for sphinx generation
Handle version retrieval better when comments are present.
Add warning if Sphinx theme (read_the_docs) is missing. | @@ -57,13 +57,17 @@ author = u'Project ARCN developers'
# Makefile from the acrn-hypervisor repo by finding these lines:
# MAJOR_VERSION=0
# MINOR_VERSION=1
+# RC_VERSION=1
try:
version_major = None
version_minor = None
version_rc = None
for line in open(os.path.normpath("../acrn-hypervisor/Makefile")) :
- if line.coun... |
Change comments to C style for compatibility | @@ -1454,22 +1454,22 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define SGEMM_DEFAULT_P 768
#define SGEMM_DEFAULT_R sgemm_r
-//#define SGEMM_DEFAULT_R 1024
+/*#define SGEMM_DEFAULT_R 1024*/
#define DGEMM_DEFAULT_P 512
#define DGEMM_DEFAULT_R dgemm_r
-//#define DGEMM_DEFAULT_R 1024
+/*#d... |
Remove deleted -c flag from mbld.1 | @@ -35,10 +35,6 @@ The myrbuild options are:
.B -[h|?]
Print a summary of the available options.
-.TP
-.B -c
-cleans the code before building. This applies to both
-
.TP
.B -b \fIbinname\fP
Compile source into a binary named 'name'. If neither this option nor
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.