message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Fixed issue with multiple devices connected during cal | @@ -155,9 +155,24 @@ void survive_cal_install( struct SurviveContext * ctx )
cd->numPoseObjects = 0;
+ char RequiredTrackersForCal[128] = {};
// setting the required trackers for calibration to be permissive to make it easier for a newbie to start--
// basically, libsurvive will detect whatever they have plugged in and... |
testing for auto-gen | @@ -2,6 +2,7 @@ Expressions
-----------
.. danger::
+ Gorfo
Confirm the text here adequately characterizes that an expression has
value everywhere over the whole mesh it is defined on. Its a field.
|
Remove extra border top when script is empty | border-top: 1px solid var(--sidebar-border-color);
}
+.ScriptEditor > .ActionMini--Add:first-child {
+ border-top: 0;
+}
+
.ActionMini__Children > .ActionMini--Add:first-child {
border-top: 1px solid var(--sidebar-border-color);
}
|
reuse tcp lookup with correct address as key. | @@ -1615,10 +1615,10 @@ reuse_tcp_find(struct outside_network* outnet, struct serviced_query* sq)
key_p.reuse.node.key = &key_p.reuse;
if(sq->ssl_upstream) /* something nonNULL for comparisons in tree */
key_p.c->ssl = (void*)1;
- if(sq->addrlen > sizeof(key_w.addr))
+ if(sq->addrlen > sizeof(key_p.reuse.addr))
return ... |
enclave-tls: allow enclave-tls-server to be alive by default
Fixes: | @@ -91,7 +91,7 @@ int sgx_create_report(sgx_report_t *report)
}
#endif
-int enclave_tls_server_startup(int fd, enclave_tls_log_level_t log_level,
+int enclave_tls_server_startup(int sockfd, enclave_tls_log_level_t log_level,
char *attester_type, char *verifier_type,
char *tls_type, char *crypto_type, bool mutual)
{
@@ ... |
Update README.md
Add build status badge to the README. | +[](https://github.com/criblio/appscope/actions/workflows/build.yml)
+
# AppScope
AppScope is an open source, runtime-agnostic instrumentation utility for any Linux command or application. It helps users explore, understand, and g... |
Let xNetworkInterfaceInitialise wait for the PHY Link Status | PIC32_MAC_EVENT_IF_PENDING = 0x004, /* an interface event signal: RX, TX, errors. etc. */
} PIC32_MAC_EVENT_TYPE;
+ typedef enum
+ {
+ eMACInit, /* Must initialise MAC. */
+ eMACPass, /* Initialisation was successful. */
+ eMACFailed, /* Initialisation failed. */
+ } eMAC_INIT_STATUS_TYPE;
+
static TCPIP_STACK_HEAP_HAN... |
ensure to initialize the reserved frame slot to 0 in datagram_write_test() | @@ -109,6 +109,7 @@ static int datagram_write_test() {
DBG_PRINTF("Unable to allocate memory in cnx\n");
return -1;
}
+ my_memset(slot, 0, sizeof(reserve_frame_slot_t));
slot->frame_type = FT_DATAGRAM | FT_DATAGRAM_LEN;
slot->nb_bytes = 1 + varint_len(frame->length) + frame->length;
|
ini: clear ordering key before return | @@ -797,6 +797,7 @@ int elektraIniGet (Plugin * handle, KeySet * returned, Key * parentKey)
incOrder (parentKey);
pluginConfig->lastOrder = elektraStrDup (keyString (keyGetMeta (parentKey, "internal/ini/order")));
elektraPluginSetData (handle, pluginConfig);
+ keySetMeta (parentKey, "internal/ini/order", 0);
return ret... |
Disable logpolar if not used | @@ -117,6 +117,7 @@ void imlib_logpolar_int(image_t *dst, image_t *src, rectangle_t *roi, bool linea
}
}
+#if defined(IMLIB_ENABLE_LOGPOLAR) || defined(IMLIB_ENABLE_LINPOLAR)
void imlib_logpolar(image_t *img, bool linear, bool reverse)
{
image_t img_2;
@@ -136,6 +137,7 @@ void imlib_logpolar(image_t *img, bool linear, ... |
Saving HeadErrorLimit and FlowChangeLimit only if they are used
To help a bit with backward computability the two new parameters will be saved to the INP file only if values were set for them. | @@ -618,8 +618,12 @@ int saveinpfile(EN_Project *pr, char *fname)
fprintf(f, "\n CHECKFREQ %-d", hyd->CheckFreq);
fprintf(f, "\n MAXCHECK %-d", hyd->MaxCheck);
fprintf(f, "\n DAMPLIMIT %-.8f", hyd->DampLimit);
+ if (hyd->HeadErrorLimit > 0.0) {
fprintf(f, "\n HEADERROR %-.8f", hyd->HeadErrorLimit * pr->Ucf[HEAD]);
+ }
... |
build BUGFIX link dl library in a portable way | @@ -179,7 +179,7 @@ target_link_libraries(sysrepocfg sysrepo)
# sysrepo-plugind daemon
add_executable(sysrepo-plugind ${SYSREPOPLUGIND_SRC})
-target_link_libraries(sysrepo-plugind sysrepo dl)
+target_link_libraries(sysrepo-plugind sysrepo ${CMAKE_DL_LIBS})
# include custom Modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_P... |
Fix data race in SDL2 renderer.
This callback can be called while the renderer is holding a reference to
the cache, so it's impossible to safely delete it here. | @@ -384,17 +384,21 @@ TCOD_Error TCOD_sdl2_render_texture(
// ----------------------------------------------------------------------------
// SDL2 Rendering
/**
- * Handle events from SDL2.
- *
- * Target textures need to be reset on an SDL_RENDER_TARGETS_RESET event.
+ Handle events from SDL2.
+
+ Target textures need... |
removed call to test_linaer_hash_setup in test_linear_hash.c | @@ -451,7 +451,7 @@ test_linear_hash_create_destroy(
) {
linear_hash_table_t *linear_hash = alloca(sizeof(linear_hash_table_t));
- test_linear_hash_setup(tc, linear_hash);
+ //test_linear_hash_setup(tc, linear_hash);
test_linear_hash_takedown(tc, linear_hash);
|
also need libncurses5-dev liblzma-dev | @@ -13,7 +13,7 @@ Build and install from sources is possible. However, the source build for AOMP
#### Debian or Ubuntu Packages
```
- sudo apt-get install cmake g++-5 g++ pkg-config libpci-dev libnuma-dev libelf-dev libffi-dev git python libopenmpi-dev gawk mesa-common-dev texinfo libbison-dev bison flex libbabeltrace-... |
[OpenGL] Apply swap interval from glXMakeCurrent | @@ -200,6 +200,16 @@ EXPORT_C_(bool) glXMakeCurrent(void* dpy, void* drawable, void* ctx) {
bool ret = gl.glXMakeCurrent(dpy, drawable, ctx);
if (ret)
imgui_set_context(ctx);
+
+ if (params.gl_vsync >= 0) {
+ if (gl.glXSwapIntervalEXT)
+ gl.glXSwapIntervalEXT(dpy, drawable, params.gl_vsync);
+ if (gl.glXSwapIntervalSGI... |
Do not drop `const` modifier | @@ -5096,7 +5096,7 @@ ZyanStatus ZydisDecoderDecodeBuffer(const ZydisDecoder* decoder, const void* buf
ZydisDecoderContext context;
ZYAN_MEMSET(&context, 0, sizeof(context));
context.decoder = decoder;
- context.buffer = (ZyanU8*)buffer;
+ context.buffer = (const ZyanU8*)buffer;
context.buffer_len = length;
context.pre... |
Update OSSL_STORE_attach() documentation to indicate it increases the ref_count of the passed in bio | @@ -18,7 +18,8 @@ OSSL_STORE_attach - Functions to read objects from a BIO
OSSL_STORE_attach() works like L<OSSL_STORE_open(3)>, except it takes a B<BIO>
I<bio> instead of a I<uri>, along with a I<scheme> to determine what loader
-should be used to process the data.
+should be used to process the data. The reference co... |
imx8x: add some more modules in menu.lst | #
bootdriver /armv8/sbin/boot_armv8_generic
cpudriver /armv8/sbin/cpu_imx8x
-#module /armv8/sbin/init
+module /armv8/sbin/init
# Domains spawned by init
-#module /armv8/sbin/mem_serv
-#module /armv8/sbin/monitor
+module /armv8/sbin/mem_serv
+module /armv8/sbin/monitor
# Special boot time domains spawned by monitor
-#mo... |
isolated failing test | @@ -363,7 +363,7 @@ test_linear_hash_correct_bucket_after_split(
/* resolve bucket key 2 hashes to given the current linear_hash state - should be 1 */
int hash_idx = insert_hash_to_bucket(hash_key, linear_hash);
- //printf("h1 : %d\n", hash_idx);
+ printf("h1 : %d\n", hash_idx);
if (hash_idx < linear_hash->next_split)... |
Azure: Fix broken azure build from previous commit. | @@ -7,7 +7,12 @@ jobs:
- task: DownloadPipelineArtifact@2
inputs:
source: current
- artifact: linux_build
+ artifact: linux_app
+ path: ./test/testContainers/
+ - task: DownloadPipelineArtifact@2
+ inputs:
+ source: current
+ artifact: linux_lib
path: ./test/testContainers/
- script: chmod +x ./test/testContainers/libs... |
Refine rsumption master secret compute function | @@ -1506,17 +1506,16 @@ cleanup:
int mbedtls_ssl_tls13_compute_resumption_master_secret( mbedtls_ssl_context *ssl )
{
- int ret = 0;
-
+ int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
mbedtls_md_type_t md_type;
-
- unsigned char transcript[MBEDTLS_MD_MAX_SIZE];
+ mbedtls_ssl_handshake_params *handshake = ssl->handsha... |
add test case for `Record.new` constructors | @@ -666,6 +666,26 @@ describe("Titan parser", function()
{ _tag = "Exp_InitList", fields = {
{ name = "p", exp = { _tag = "Exp_InitList" } },
{ name = "next", exp = { _tag = "Exp_Nil" } } }})
+
+ assert_expression_ast([[ Point.new(1.1, 2.2) ]],
+ { _tag = "Exp_Call",
+ args = { args = {
+ { value = 1.1 },
+ { value = 2... |
iokernel/mlx: bug fix | @@ -215,7 +215,7 @@ index c12bd39a9..e7645e932 100644
+ /* Found region. */
+ return txq->id2mr[i].lkey;
+ }
-+ if (__max(txq->id2mr[i].mr->start, m->start_addr) <=
++ if (__max(txq->id2mr[i].mr->start, m->start_addr) <
+ __min(txq->id2mr[i].mr->end, m->end_addr)) {
+ /* Recreate lkey/mr for previously mapped regions *... |
Do not #undef in example project-conf.h (RPL TSCH) | /********* Enable RPL non-storing mode *****************/
/*******************************************************/
-#undef RPL_CONF_MOP
#define RPL_CONF_MOP RPL_MOP_NON_STORING /* Mode of operation*/
-#undef ORCHESTRA_CONF_RULES
#define ORCHESTRA_CONF_RULES { &eb_per_time_source, &unicast_per_neighbor_rpl_ns, &default... |
Fixed a regression where it would return EXIT_FAILURE on an empty log. | @@ -2634,7 +2634,7 @@ read_lines (FILE * fp, GLog ** glog, int dry_run)
if (!line && (errno == EAGAIN || errno == EWOULDBLOCK) && test)
return 0;
- return test || ret;
+ return (line && test) || ret;
out:
free (line);
@@ -2669,7 +2669,7 @@ read_lines (FILE * fp, GLog ** glog, int dry_run)
if (!s && (errno == EAGAIN || ... |
modinfo BUGFIX lock cached data on running or oper ds
Fixes | @@ -1497,7 +1497,7 @@ sr_modinfo_module_data_load(struct sr_mod_info_s *mod_info, struct sr_mod_info_m
struct lyd_node *mod_data;
sr_datastore_t conf_ds;
- if (((mod_info->ds == SR_DS_RUNNING) || (mod_info->ds == SR_DS_OPERATIONAL)) && (conn->opts & SR_CONN_CACHE_RUNNING)) {
+ if (((mod_info->ds == SR_DS_RUNNING) || (m... |
Test that safely passes through a CDATA section.
Specifically test that multi-byte characters are correctly tokenised | @@ -5986,6 +5986,16 @@ START_TEST(test_ext_entity_utf8_non_bom)
}
END_TEST
+/* Test that UTF-8 in a CDATA section is correctly passed through */
+START_TEST(test_utf8_in_cdata_section)
+{
+ const char *text = "<doc><![CDATA[one \xc3\xa9 two]]></doc>";
+ const XML_Char *expected = "one \xc3\xa9 two";
+
+ run_character_c... |
imxrt: fix dcache initialization. | @@ -1982,9 +1982,13 @@ void _imxrt_enableDCache(void)
ccsidr = *(imxrt_common.scb + scb_ccsidr);
/* Invalidate D$ */
- for (sets = (ccsidr >> 13) & 0x7fff; sets-- != 0; )
- for (ways = (ccsidr >> 3) & 0x3ff; ways-- != 0; )
+ sets = (ccsidr >> 13) & 0x7fff;
+ do {
+ ways = (ccsidr >> 3) & 0x3ff;
+ do {
*(imxrt_common.sc... |
Match macros with spaces between # and define | @@ -250,7 +250,7 @@ class NameCheck(object):
Returns a List of Match objects for the found macros.
"""
- MACRO_REGEX = r"#define (?P<macro>\w+)"
+ MACRO_REGEX = r"# *define +(?P<macro>\w+)"
NON_MACROS = (
"asm", "inline", "EMIT", "_CRT_SECURE_NO_DEPRECATE", "MULADDC_"
)
|
out_opentelemetry: set default uri to /v1/metrics | @@ -311,9 +311,9 @@ static struct flb_config_map config_map[] = {
"Add a HTTP header key/value pair. Multiple headers can be set"
},
{
- FLB_CONFIG_MAP_STR, "uri", NULL,
+ FLB_CONFIG_MAP_STR, "uri", "/v1/metrics",
0, FLB_TRUE, offsetof(struct opentelemetry_context, uri),
- "Specify an optional HTTP URI for the target w... |
Auto adjust CMIX gain | @@ -1335,12 +1335,14 @@ int LMS7_Device::SetNCO(bool tx,size_t ch,size_t ind,bool down)
{
if (tx)
{
- if (Modify_SPI_Reg_bits(LMS7param(CMIX_BYP_TXTSP),1,true)!=0)
+ if ((Modify_SPI_Reg_bits(LMS7param(CMIX_BYP_TXTSP),1,true)!=0)
+ || (Modify_SPI_Reg_bits(LMS7param(CMIX_GAIN_TXTSP), 0, true)!=0))
return -1;
}
else
{
- i... |
more changes for first AOMP release 0.6-0 | @@ -103,12 +103,17 @@ aomp (0.6-0) UNRELEASED; urgency=medium
*
* 0.6-0
* Renamed from HCC2 to AOMP.
- * Most device libraries now stored flat in lib/libdevice directory.
- * Massive cleanup of build scripts, default install is $HOME/rocm/aomp.
- * All rocm dll references are now absolute and within the aomp installati... |
Added missing LED define in sensortag/cc1350 Board | @@ -97,6 +97,8 @@ extern "C" {
#define Board_PIN_BUTTON0 CC1350STK_KEY_LEFT
#define Board_PIN_BUTTON1 CC1350STK_KEY_RIGHT
+#define Board_PIN_BTN1 CC1350STK_KEY_LEFT
+#define Board_PIN_BTN2 CC1350STK_KEY_RIGHT
#define Board_PIN_LED0 CC1350STK_PIN_LED1
#define Board_PIN_LED1 CC1350STK_PIN_LED1
#define Board_PIN_LED2 CC13... |
Use s_com structure in for special memory allocation. | @@ -4984,8 +4984,8 @@ static void load_playable_list(char *buf)
void alloc_specials(s_model *newchar)
{
- newchar->special = realloc(newchar->special, sizeof(*newchar->special) * (newchar->specials_loaded + 1));
- memset(newchar->special + newchar->specials_loaded, 0, sizeof(*newchar->special));
+ newchar->special = re... |
resume async job before free'ing | @@ -1722,6 +1722,9 @@ Redo:
case ASYNC_RESUMPTION_STATE_REQUEST_SENT: {
/* sent async request, reset the ssl state, and wait for async response */
assert(ret < 0);
+ if (SSL_waiting_for_async(sock->ssl->ossl)) {
+ goto Redo;
+ }
SSL_free(sock->ssl->ossl);
create_ossl(sock);
if (has_pending_ssl_bytes(sock->ssl))
|
Fixed some avoidable warnings when building with -Wall | @@ -6698,13 +6698,13 @@ bool VmaDefragmentator::MoveMakesSense(
VmaAllocator_T::VmaAllocator_T(const VmaAllocatorCreateInfo* pCreateInfo) :
m_UseMutex((pCreateInfo->flags & VMA_ALLOCATOR_CREATE_EXTERNALLY_SYNCHRONIZED_BIT) == 0),
m_UseKhrDedicatedAllocation((pCreateInfo->flags & VMA_ALLOCATOR_CREATE_KHR_DEDICATED_ALLOC... |
Install DevicePathProtocol during load and uninstall during unload for UEFI shell reconnect -r. | @@ -208,9 +208,27 @@ NvmDimmDriverUnload(
UINTN HandleCount = 0;
UINTN Index = 0;
CONST BOOLEAN DriverAlreadyUnloaded = (gNvmDimmData == NULL);
+ UINTN BufSize = 0;
+ EFI_HANDLE *Buffer = NULL;
NVDIMM_ENTRY();
+ ReturnCode = gBS->LocateHandleBuffer(ByProtocol, &gNfitBindingProtocolGuid, NULL, &BufSize, &Buffer);
+ if (... |
Clarify closure in loop test. | (assert (not= 0 1 1) "not= 2")
# Closure in while loop
-(def closures @[])
-(loop [i :range [0 5]]
- (array.push closures (fn [] i)))
+(def closures (for [i :range [0 5]] (fn [] i)))
(assert (= 0 ((get closures 0))) "closure in loop 0")
(assert (= 1 ((get closures 1))) "closure in loop 1")
(assert (= 2 ((get closures 2... |
Use the segment address for WAL-replication in gpexpand
The address for WAL-replication should be the primary's `address`
in gp_segment_configuration. When running pg_basebackup,
the destination address for pg_basebackup is resolved to
the address in WAL replication by its mirror. | @@ -660,7 +660,7 @@ class SegmentTemplate:
try:
coordinatorSeg = self.gparray.coordinator
cmd = PgBaseBackup(pgdata=self.tempDir,
- host=coordinatorSeg.getSegmentHostName(),
+ host=coordinatorSeg.getSegmentAddress(),
port=str(coordinatorSeg.getSegmentPort()),
recovery_mode=False,
target_gp_dbid=dummyDBID)
|
Remove the don't close DB yet message
As discussed in dev channels, i figured we could remove the message: don't close database yet, keep open for 900 seconds | @@ -4923,7 +4923,6 @@ void DeRestPluginPrivate::closeDb()
{
if (ttlDataBaseConnection > idleTotalCounter)
{
- DBG_Printf(DBG_INFO, "don't close database yet, keep open for %d seconds\n", (ttlDataBaseConnection - idleTotalCounter));
return;
}
|
fix create_cd call in tutorial with tasks
Note: mandatory check (NEED_CHECK) was skipped | "outputs": [],
"source": [
"from catboost.utils import create_cd\n",
+ "feature_names = dict(list(enumerate(train_df.keys()[1:])))\n",
+ " \n",
"create_cd(\n",
" label=0,\n",
- " cat_features=list(range(1, train_df.columns.shape[0])),\n",
- " feature_names=dict(enumerate(train_df)),\n",
+ " cat_features=list(range(1, t... |
compilebuildoutputs make some comments obsolete. | @@ -48,7 +48,8 @@ The basic syntax follows Visual Studio's model, but it should be easy to see how
Build rules follow the same configuration scoping as the rest of the Premake API. You can apply rules to a specific platform or build configuration, to specific files or all files, or to any combination. And you can use [... |
Fix one more issue in regards to multiple single inputs | @@ -600,6 +600,8 @@ LRESULT VKBindings::RecordKeyDown(const USHORT acVKCode)
// mark key down
m_keyStates[acVKCode] = true;
+ ExecuteSingleInput(acVKCode, true);
+
if (m_recordingLength != 0)
{
if (m_recordingLength >= m_recording.size())
@@ -624,8 +626,6 @@ LRESULT VKBindings::RecordKeyDown(const USHORT acVKCode)
m_re... |
example: fixed the issue that config struct is not properly initialized | @@ -59,7 +59,8 @@ static void gpio_task_example(void* arg)
void app_main(void)
{
- gpio_config_t io_conf;
+ //zero-initialize the config structure.
+ gpio_config_t io_conf = {};
//disable interrupt
io_conf.intr_type = GPIO_INTR_DISABLE;
//set as output mode
|
Remove duplicate PhGetProcessIsWow64 | @@ -10629,9 +10629,6 @@ NTSTATUS PhGetProcessCodePage(
}
#ifdef _WIN64
- if (!NT_SUCCESS(status = PhGetProcessIsWow64(ProcessHandle, &isWow64)))
- return status;
-
if (isWow64)
{
PH_STRINGREF systemRootSr;
|
[numerics] Disable debug messages in GenericMechanical | /* #define GMP_WRITE_PRB */
-#define DEBUG_MESSAGES
-#define DEBUG_STDOUT
+//#define DEBUG_MESSAGES
+//#define DEBUG_STDOUT
#include "debug.h"
#include "LinearComplementarityProblem.h"
#include "lcp_cst.h"
|
feat(specs/discord): missing fields for 'Application Command Options' | {"name":"description", "type":{"base":"char", "dec":"[100+1]"}, "comment":"1-100 character description"},
{"name":"required", "type":{"base":"bool"}, "default_value":false, "comment":"if the parameter is required or optional -- default false"},
{"name":"choices", "type":{"base":"struct discord_application_command_optio... |
Fix local notification of interfaces when there's no link-local address.
Thanks to Christof Schulze for noticing the problem. | @@ -106,8 +106,8 @@ local_notify_interface_1(struct local_socket *s,
rc = snprintf(buf, 512,
"%s interface %s up true%s%s%s%s\n",
local_kind(kind), ifp->name,
- ifp->ll ? " ipv6 " : "",
- ifp->ll ? format_address(*ifp->ll) : "",
+ ifp->numll > 0 ? " ipv6 " : "",
+ ifp->numll > 0 ? format_address(ifp->ll[0]) : "",
v4[0]... |
Check for Artix linux dependencies | @@ -55,7 +55,7 @@ dependencies() {
for i in $DISTRO; do
echo "# Checking dependencies for \"$i\""
case $i in
- *arch*|*manjaro*)
+ *arch*|*manjaro*|*artix*)
MANAGER_QUERY="pacman -Q"
MANAGER_INSTALL="pacman -S"
DEPS="{gcc,meson,pkgconf,python-mako,glslang,libglvnd,lib32-libglvnd,libxnvctrl,libdrm}"
|
Ensure we don't reference addrlen if null in accept functions | @@ -619,6 +619,10 @@ long doGetProcMem() {
static
void doSetConnection(int sd, const struct sockaddr *addr, socklen_t len, enum control_type_t endp)
{
+ if (!addr || (len <= 0)) {
+ return;
+ }
+
// Should we check for at least the size of sockaddr_in?
if (g_netinfo && (g_netinfo[sd].fd == sd) &&
addr && (len > 0)) {
@... |
Refactor BuildIndexInfo() with the new makeIndexInfo()
This portion of the code got forgotten in which has introduced a
new routine to build this node, and this finishes the unification of the
places where IndexInfo is initialized.
Author: Michael Paquier
Discussion: | @@ -2229,7 +2229,7 @@ index_drop(Oid indexId, bool concurrent, bool concurrent_lock_mode)
IndexInfo *
BuildIndexInfo(Relation index)
{
- IndexInfo *ii = makeNode(IndexInfo);
+ IndexInfo *ii;
Form_pg_index indexStruct = index->rd_index;
int i;
int numAtts;
@@ -2239,22 +2239,24 @@ BuildIndexInfo(Relation index)
if (numAt... |
Small Matrix: skylakex: sgemm nn: fix error when beta not zero | @@ -42,15 +42,13 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
_mm512_mask_storeu_ps(&C[(j+N)*ldc + i + (M*16)], mask, result##M##N)
#else
#define STORE_512(M, N) \
- BLASLONG offset##M##N = (j+N)*ldc + i + (M*16); \
result##M##N = _mm512_mul_ps(result##M##N, alpha_512); \
- asm("vfmadd231... |
Fix mipmap boundary check | @@ -35,8 +35,9 @@ namespace blit {
uint16_t mipmap_index = floorf(mipmap);
uint8_t blend = (mipmap - floorf(mipmap)) * 255;
- mipmap_index = mipmap_index >= sprites->mipmaps.size() ? uint16_t(sprites->mipmaps.size() - 1) : mipmap_index;
- mipmap_index = mipmap_index < 0 ? 0 : mipmap_index;
+ if (mipmap_index >= sprites... |
Fix appyeyor uv.lib path | @@ -38,7 +38,7 @@ build_script:
- luarocks remove luv
# Test the alternate rockspec
- mkdir build\lib
- - cp build\Release\uv.lib build\lib
+ - cp build\deps\libuv\Release\uv_a.lib build\lib\uv.lib
- cp -a deps\libuv\include build
- ps: luarocks make rockspecs\$(ls rockspecs) LIBUV_DIR=build CFLAGS="/nologo /MT /O2"
- ... |
Disable gamemode dbus for now | @@ -785,13 +785,13 @@ parse_overlay_config(struct overlay_params *params,
main_metadata.meta.valid = false;
}
- if (params->enabled[OVERLAY_PARAM_ENABLED_gamemode])
- {
- if (dbusmgr::dbus_mgr.init(dbusmgr::SRV_GAMEMODE))
- HUDElements.gamemode_bol = dbusmgr::dbus_mgr.gamemode_enabled(getpid());
- }
- else
- dbusmgr::d... |
wsmand-listener: exit flow if gss_encrypt fail
Exit flow if gss_encrypt fail, otherwise we'll use
potentially uninitialized variables. | @@ -359,7 +359,8 @@ DONE:
// we had an encrypted message so now we have to encypt the reply
char *enc;
int enclen;
- gss_encrypt(arg, state->response, state->len, &enc, &enclen);
+ if(gss_encrypt(arg, state->response, state->len, &enc, &enclen) != 1) //Not OK
+ return;
u_free(state->response);
state->response = enc;
st... |
Fix inclusion of C examples if float precision is enabled. | @@ -41,7 +41,8 @@ endif()
###############################################################################
### Create examples. Exclude GLUT related examples in double precision mode.
###############################################################################
-if(GLUT_FOUND AND OPENGL_FOUND AND TINYSPLINE_FLOAT_PREC... |
Add renezvous syscall to 9front.
Oops, missed this. | @@ -162,6 +162,7 @@ pkg sys =
const semacquire : (addr : uint32#, block : int -> int)
const tsemacquire : (addr : uint32#, ms : uint32 -> int)
const semrelease : (addr : uint32#, count : int32 -> int32)
+ const rendezvous : (tag : void#, val : void# -> void#)
extern const alloca : (sz : size -> byte#)
@@ -259,3 +260,5 ... |
don't want to miss the EB because of wrong state caused by inhibit timer. | @@ -615,7 +615,8 @@ port_INLINE void activity_synchronize_newSlot(void) {
port_INLINE void activity_synchronize_startOfFrame(PORT_TIMER_WIDTH capturedTime) {
// don't care about packet if I'm not listening
- if (ieee154e_vars.state!=S_SYNCLISTEN) {
+ // in case serial rx is started, we don't want to loss this packet be... |
Prevent cutting of characters with height styling | @@ -161,7 +161,7 @@ export class ChatInput extends Component {
</div>
<div className="fr h-100 flex" style={{ flexGrow: 1, height: 40 }}>
<input className="ml2 bn"
- style={{ flexGrow: 1 }}
+ style={{ flexGrow: 1, height: 40 }}
ref={this.textareaRef}
placeholder={props.placeholder}
value={state.message}
|
tests: Use soft links for the test file staging
Type: fix
with hard links this sequence doesn't work
echo "GARBAGE" >> test/vpp_ipsec.py
git checkout test/vpp_ipsec.py
also blow away the staging diretory with 'test-wipe' just to be thorough | @@ -219,7 +219,7 @@ ext-test-apps:
$(BUILD_TEST_SRC): verify-env
@mkdir -p $@
- @for file in $(VPP_TEST_SRC); do if [ ! -L $$file ] && [ ! -e $(BUILD_TEST_SRC)/$$(basename $$file) ] ; then ln $$file $(BUILD_TEST_SRC) ; fi ; done
+ @for file in $(VPP_TEST_SRC); do if [ ! -L $$file ] && [ ! -e $(BUILD_TEST_SRC)/$$(basena... |
CMSIS Driver: minor documentation fix (ARM_USART_EVENT_ bit 11 is DSR not CTS) | @@ -774,7 +774,7 @@ The following events can be generated:
data field \em cts = \token{1} </td>
</tr>
<tr>
- <td> ARM_USART_EVENT_CTS </td><td> 11 </td><td> Indicates that DSR modem line state has changed.
+ <td> ARM_USART_EVENT_DSR </td><td> 11 </td><td> Indicates that DSR modem line state has changed.
Data field \em ... |
Reformat All: Support spaces in tool paths
Before this update `reformat-all` would not work correctly, if the path
to the reformat scripts contained space characters. | @@ -10,8 +10,12 @@ SCRIPTS_DIR=$(dirname "$0")
cd "$SOURCE"
+OLD_IFS="$IFS"
+IFS='
+'
for reformat in $(ls "$SCRIPTS_DIR"/reformat-*); do
[ "$(basename "$reformat")" = "reformat-all" ] && continue
echo "running $reformat..."
- $reformat "$@"
+ "$reformat" "$@"
done
+IFS="$OLD_IFS"
|
Fix set active power state from electrical measurement cluster
Issue | @@ -1803,10 +1803,13 @@ LightNode *DeRestPluginPrivate::updateLightNode(const deCONZ::NodeEvent &event)
std::vector<deCONZ::ZclAttribute>::const_iterator enda = ic->attributes().end();
for (;ia != enda; ++ia)
{
- // @manup, when reading the Electrical Measurement attributes from the GUI, I get here,
- // but only attri... |
pybricks.hubs.MoveHub: Enable system.
This reverts commit
We need system functions such as reset to jump to firmware update mode. | #define PYBRICKS_PY_COMMON_KEYPAD (0)
#define PYBRICKS_PY_COMMON_LIGHT_MATRIX (0)
#define PYBRICKS_PY_COMMON_MOTORS (1)
-#define PYBRICKS_PY_COMMON_SYSTEM (0)
+#define PYBRICKS_PY_COMMON_SYSTEM (1)
#define PYBRICKS_PY_EXPERIMENTAL (0)
#define PYBRICKS_PY_GEOMETRY (0)
#define PYBRICKS_PY_HUBS (1)
|
add more info to help debug specs | @@ -315,6 +315,16 @@ print_def(FILE *fp, struct jc_def *d)
print_enum(fp, (struct jc_enum *)d);
};
+static void
+emit_field_spec(void *cxt, FILE *fp, struct jc_field *f)
+{
+ fprintf(fp, " // edit '%s:%d:%d' to change the following spec to change field\n",
+ spec_name, f->lnc.line + 1, f->lnc.column);
+ fprintf(fp, " /... |
add PTHREAD_CHECK2() accepting an additional non-zero return code
use e.g. for
* pthread_broadcast(): PTHREAD_BARRIER_SERIAL_THREAD
* pthread_cond_timedwait(): ETIMEDOUT
avoid the extra function call to the error handler if the command succeeded | @@ -118,8 +118,20 @@ void pocl_abort_on_pthread_error (int status, unsigned line, const char *func);
}
#endif
-#define PTHREAD_CHECK(code) \
- pocl_abort_on_pthread_error ((code), __LINE__, __FUNCTION__);
+/* Some pthread_*() calls may return '0' or a specific non-zero value on
+ * success.
+ */
+#define PTHREAD_CHECK2... |
BugID:22560731:cli login passwd bugfix | @@ -912,6 +912,8 @@ int32_t cli_set_echo_status(int32_t status)
#define CLI_DEFAULT_PASSWORD "aos"
#define CLI_PASSWD_IN_KV "cli_passwd"
+#define CLI_PASSWD_HOLD (0)
+#define CLI_PASSWD_UPDATED (-1)
static aos_timer_t cli_passwd_timer;
@@ -993,20 +995,19 @@ static int32_t cli_passwd_updated_check(void)
#ifdef CSP_LINUX... |
fix(Kconfig): add LV_MEM_ADDR config | @@ -71,6 +71,11 @@ menu "LVGL configuration"
default 32
depends on !LV_MEM_CUSTOM
+ config LV_MEM_ADDR
+ hex "Address for the memory pool instead of allocating it as a normal array"
+ default 0x0
+ depends on !LV_MEM_CUSTOM
+
config LV_MEM_CUSTOM_INCLUDE
string "Header to include for the custom memory function"
default... |
BUGFIX invalid use of macro parameter in LY_ARRAY_CREATE_GOTO | @@ -453,12 +453,12 @@ LY_ERR ly_munmap(void *addr, size_t length);
*/
#define LY_ARRAY_CREATE_GOTO(CTX, ARRAY, SIZE, RET, GOTO) \
if (ARRAY) { \
- ARRAY = ly_realloc(((uint32_t*)(ARRAY) - 1), sizeof(uint32_t) + ((*((uint32_t*)(ARRAY) - 1) + SIZE) * sizeof *(ARRAY))); \
+ ARRAY = ly_realloc(((uint32_t*)(ARRAY) - 1), siz... |
Update: comment remove | -#run in terminal:
-#jupyter notebook stop
-#jupyter notebook
-#roslaunch transbot_nav laser_bringup.launch
-#roslaunch transbot_nav rrt_exploration.launch open_rviz:=false
-#roslaunch astra_camera astrapro.launch
-
import sys
import os
os.system("pkill NAR")
|
naive: test l2 escape request | =/ yes-breach [0 ~marbud %marbud-key-0 %own & encrypt auth suite]
;: weld
%+ expect-eq
+ :: breach=%.n
!> [0 1] :: [rift life]
::
!>
[rift.net life.keys.net]:(~(got by points.state) ~marbud)
::
%+ expect-eq
+ :: breach=%.y
!> [1 1]
::
!>
++ test-marbud-transfer-life-rift ^- tang
;: weld
%+ expect-eq
+ :: reset=%.n
!> [... |
docs/hw/falcon/io: Add missing Falcon registers UNK174[] & UNK17C
These MMIO registers were noted in rnndb/falcon.xml, although presently lack
full documentation.
UNK174[] is believed to have a length of 2 (each 0x4). | @@ -121,6 +121,9 @@ Host Falcon Present on Name Description
0x164 0x05900 UAS units UAS_CONFIG UAS configuration [falcon/data.txt]
0x168 0x05a00 UAS units UAS_FAULT_ADDR UAS MMIO fault address [falcon/data.txt]
0x16c 0x05b00 UAS units UAS_FAULT_STATUS UAS MMIO fault status [falcon/data.txt]
+0x174 0x05d00 v5+ units ???... |
Allow the button HAL example to build for platform Cooja | @@ -3,6 +3,7 @@ CONTIKI = ../../..
all: $(CONTIKI_PROJECT)
-PLATFORMS_ONLY = cc26x0-cc13x0 cc2538dk openmote-cc2538 zoul native simplelink
+PLATFORMS_ONLY += cc26x0-cc13x0 cc2538dk openmote-cc2538 zoul simplelink
+PLATFORMS_ONLY += cooja native
include $(CONTIKI)/Makefile.include
|
volmar: add refresh key mask
Add a refresh key mask to enable recovery mode.
BRANCH=none
TEST=make BOARD=volmar | #define CONFIG_CHARGER_SENSE_RESISTOR 10
#define CONFIG_CHARGER_SENSE_RESISTOR_AC 10
+/* Keyboard */
+#define CONFIG_KEYBOARD_REFRESH_ROW3
+
#ifndef __ASSEMBLER__
#include "gpio_signal.h" /* needed by registers.h */
|
Update deprecated internal link to FLE driver spec | @@ -63,7 +63,7 @@ Seek help in the slack channel \#drivers-fle.
After you have a binding, integrate libmongocrypt in your driver to
support client side encryption.
-See the [driver spec](https://docs.google.com/document/d/1yg4m_ptf5YtZdmNDNMcpcpsvrtnLF1xOPLx8D5BpAJw)
+See the [driver spec](https://github.com/mongodb/sp... |
feat(FM650):Modify the target name | @@ -12,7 +12,7 @@ SRCS_DIR := $(wildcard ./*.c)
OBJS := $(addsuffix .o,$(addprefix $(OBJDIR)/,$(basename $(notdir $(SRCS_DIR)))))
DEPENDS := $(addsuffix .d,$(OBJS))
-TARGET = boat_test
+TARGET = call_boat_test
TARGET_EXE = $(OBJDIR)/$(TARGET)
all: distclean $(TARGET_EXE)
|
docs: Changed a sentence and a formatting error
fix issue | @@ -20,7 +20,7 @@ The intended readers of this article are: BoAT SDK detailed designers.
## BoAT Design Goals
-As a middleware fusing Blockchain and IoT technologies, It should be easily and quickly transplanted into various IoT modules at the minimum cost of modification. The design of BoAT is based on these following... |
driver/retimer/nb7v904m.h: Format with clang-format
BRANCH=none
TEST=none | @@ -127,7 +127,8 @@ int nb7v904m_tune_usb_flat_gain(const struct usb_mux *me, uint8_t gain_a,
#define NB7V904M_CH_ALL_SKIP_LOSS 0xff
/* Control channel Loss Profile Matching */
int nb7v904m_set_loss_profile_match(const struct usb_mux *me, uint8_t loss_a,
- uint8_t loss_b, uint8_t loss_c, uint8_t loss_d);
+ uint8_t loss... |
Display an error message if parm info could not be retrieved from name. | @@ -161,6 +161,14 @@ public:
hapiResult = HAPI_GetParmInfoFromName(Util::theHAPISession.get(), nodeId,
myParmName.asChar(), &parmInfo);
+ if (HAPI_FAIL(hapiResult))
+ {
+ DISPLAY_ERROR("Could not get info of parm name \"^1s\"", myParmName);
+ DISPLAY_ERROR_HAPI_STATUS_CALL();
+
+ return MStatus::kFailure;
+ }
+
if (par... |
msp430: compile using -std=gnu99
GCC 4 uses -std=gnu89 as default, switch
to -std=gnu99 to align the behavior of
the port with the wiki statement that C99
can be used in Contiki-NG. | @@ -165,7 +165,7 @@ endif
ifndef CFLAGSNO
CFLAGSNO = -Wall -mmcu=$(CC_MCU) $(CFLAGSWERROR)
endif
-CFLAGS += -Os -fno-strict-aliasing
+CFLAGS += -Os -fno-strict-aliasing -std=gnu99
LDFLAGS += -mmcu=$(CC_MCU) -Wl,-Map=$(CONTIKI_NG_PROJECT_MAP)
### These flags can reduce the code size and RAM usage with up to 10%
|
fix(west): Restore atmel west module. | @@ -15,7 +15,6 @@ manifest:
# TODO: Rename once upstream offers option like `exclude` or `denylist`
name-blacklist:
- ci-tools
- - hal_atmel
- hal_altera
- hal_cypress
- hal_infineon
|
fix leak on line 1667, fix style | @@ -1376,6 +1376,7 @@ ACVP_RESULT acvp_enable_hash_cap (
ACVP_CIPHER cipher,
ACVP_RESULT (*crypto_handler) (ACVP_TEST_CASE *test_case)) {
ACVP_HASH_CAP *cap;
+ ACVP_RESULT result;
if (!ctx) {
return ACVP_NO_CTX;
@@ -1392,11 +1393,11 @@ ACVP_RESULT acvp_enable_hash_cap (
//TODO: need to validate that cipher, mode, etc. ... |
fs/fscmd : Prevent overflow of fscmd_buffer
Check buffer size when memcpy to fscmd_buffer | @@ -211,7 +211,7 @@ static int tash_echo(int argc, char **args)
return ret;
}
- for (i = n_opt; i < direction.index; i++) {
+ for (i = n_opt; i < direction.index && len < FSCMD_BUFFER_LEN; i++) {
if (i != n_opt) {
memcpy(fscmd_buffer + len, " ", 1);
len += 1;
|
esp_clk: Add migration guide for this breaking change | @@ -8,3 +8,14 @@ IPC (Inter-Processor Call) component has been moved to ``esp_system``.
Thus, any project presenting a ``CMakeLists.txt`` file with the parameters ``PRIV_REQUIRES esp_ipc`` or ``REQUIRES esp_ipc``, should be modified to simply remove these options as ``esp_system`` component is included by default.
+ESP... |
docs: Update comment for lily_raw_value.
It's been a really long time since `lily_value` contained types. | @@ -10,9 +10,8 @@ struct lily_value_;
/* Lily's foreign functions look like this. */
typedef void (*lily_foreign_func)(struct lily_vm_state_ *);
-/* lily_raw_value is a union of all possible values, plus a bit more. This is
- not common, because lily_value (which has flags and a type) is typically
- used for parameters... |
anx7483: Mark tuning data as constant.
The tuning data is not modified at runtime. Mark as constant to save
RAM space.
LOW_COVERAGE_REASON=anx7483 driver does not yet have tests b:248086547
BRANCH=none
TEST=zmake build -a | @@ -31,7 +31,7 @@ struct anx7483_tuning_set {
uint8_t value;
};
-static struct anx7483_tuning_set anx7483_usb_enabled[] = {
+const static struct anx7483_tuning_set anx7483_usb_enabled[] = {
{ ANX7483_URX1_PORT_CFG2_REG, ANX7483_CFG2_DEF },
{ ANX7483_URX2_PORT_CFG2_REG, ANX7483_CFG2_DEF },
{ ANX7483_DRX1_PORT_CFG2_REG, ... |
mangle: correct move sizes for expand/shrink | @@ -362,7 +362,7 @@ static void mangle_Expand(honggfuzz_t * hfuzz UNUSED, fuzzer_t * fuzzer, uint8_t
size_t off = util_rndGet(0, fuzzer->dynamicFileSz - 1);
fuzzer->dynamicFileSz += len;
- mangle_Move(fuzzer, buf, off, off + len, len);
+ mangle_Move(fuzzer, buf, off, off + len, fuzzer->dynamicFileSz);
}
static void man... |
trunk version of amdgpu-arch lists all gpus found so pick first one | @@ -426,6 +426,7 @@ function setaompgpu (){
elif [ -a $AOMP/bin/amdgpu-arch ]; then
detected_gpu=$($AOMP/bin/amdgpu-arch)
detected_gpu=$(echo $detected_gpu | awk '{print $1,$5}')
+ detected_gpu=`echo $detected_gpu | cut -d" " -f1` # pick first found
else
detected_gpu=$($AOMP/../bin/mygpu)
fi
|
Updated Go configure test. | # Copyright (C) NGINX, Inc.
+$echo -n "checking for Go ..."
+$echo -n "checking for Go ..." >> $NXT_AUTOCONF_ERR
+
NXT_GO_VERSION="`${NXT_GO} version`"
-GOPATH=`pwd` CGO_CPPFLAGS="-DNXT_CONFIGURE" "${NXT_GO}" build -o build/nxt_go_gen.a --buildmode=c-archive nginext
+if /bin/sh -c "GOPATH=`pwd` CGO_CPPFLAGS=-DNXT_CONFI... |
Fix child processes inheriting section references | @@ -472,7 +472,7 @@ BOOLEAN OpenDotNetPublicControlBlock_V2(
viewSize,
§ionOffset,
&viewSize,
- ViewShare,
+ ViewUnmap,
0,
PAGE_READONLY
)))
@@ -589,7 +589,7 @@ BOOLEAN OpenDotNetPublicControlBlock_V4(
viewSize,
§ionOffset,
&viewSize,
- ViewShare,
+ ViewUnmap,
0,
PAGE_READONLY
)))
@@ -694,7 +694,7 @@ PPH_LIST Q... |
Fix a small typo in the port API documentation
JerryScript-DCO-1.0-Signed-off-by: Gabor Loki | @@ -105,7 +105,7 @@ Allow user to provide external buffer for jerry instance (which includes an isol
*
*Note:
* This port function will be called automatically by jerry-core
- * wnen JERRY_ENABLE_EXTERNAL_CONTEXT is defined. If not, this function will never be called.
+ * when JERRY_ENABLE_EXTERNAL_CONTEXT is defined. ... |
Switch deprecation method for HMAC | # ifdef __cplusplus
extern "C" {
# endif
-
-DEPRECATEDIN_3_0(size_t HMAC_size(const HMAC_CTX *e))
-DEPRECATEDIN_3_0(HMAC_CTX *HMAC_CTX_new(void))
-DEPRECATEDIN_3_0(int HMAC_CTX_reset(HMAC_CTX *ctx))
-DEPRECATEDIN_3_0(void HMAC_CTX_free(HMAC_CTX *ctx))
-
-DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void... |
Reduce wait_until_triggered sleep time from 1 sec to 0.2 sec
No point sleeping long time, better to check faster and exit early
when possible. | @@ -804,13 +804,13 @@ FaultInjector_SetFaultInjection(
case FaultInjectorTypeWaitUntilTriggered:
{
FaultInjectorEntry_s *entryLocal;
- int retry_count = 600; /* 10 minutes */
+ int retry_count = 3000; /* 10 minutes */
while ((entryLocal = FaultInjector_LookupHashEntry(entry->faultName)) != NULL &&
entryLocal->faultInje... |
core dump: add extra pip dependency construct==2.10.54 | @@ -16,7 +16,7 @@ gdbgui==0.13.2.0
# 0.13.2.1 supports Python 3.6+ only
# Windows is not supported since 0.14.0.0. See https://github.com/cs01/gdbgui/issues/348
pygdbmi<=0.9.0.2
-# The pygdbmi required max version 0.9.0.2 since 0.9.0.3 is not copatible with latest gdbgui (>=0.13.2.0)
+# The pygdbmi required max version... |
trace/bind: add unit test for UDP on IPv6
The previous tests were only testing UDP4, TCP4 and TCP6.
Thanks Mauricio for the code suggestion. | @@ -128,7 +128,7 @@ func TestBindTracer(t *testing.T) {
}
}),
},
- "ipv4": {
+ "tcp4": {
getTracerConfig: func(info *utilstest.RunnerInfo) *tracer.Config {
return &tracer.Config{
MountnsMap: utilstest.CreateMntNsFilterMap(t, info.MountNsID),
@@ -141,9 +141,10 @@ func TestBindTracer(t *testing.T) {
}
utilstest.Equal(t, ... |
Fix for memory leak in ssl tests
Fix for leaked buffers on error case in build_transforms() in
test_suite_ssl.function | @@ -1354,7 +1354,8 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
t_in->taglen = 8;
break;
default:
- return( 1 );
+ ret = 1;
+ goto cleanup;
}
break;
@@ -1374,7 +1375,8 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
t_in->taglen = 8;
break;
default:
- return( 1 );
+ ret = 1;
+ goto cleanup;... |
add environment seed for button exemple | ;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
+[platformio]
+default_envs = zero
[env:zero]
lib_extra_dirs = ../../../../../
@@ -24,3 +26,20 @@ build_flags =
lib_deps =
luos_engine@^2.4.0
Button
+
+[env:seed]
+lib_extra_dirs = ../../../../../
+lib_... |
disabled gradle parallel task execution and daemon via gradle.properties | -## build configuration
-org.gradle.parallel = true
+# build configuration
+org.gradle.parallel = false
org.gradle.caching = false
-org.gradle.java.compile-classpath-packaging = true
+org.gradle.daemon = false
-## maven publishing
+# maven publishing
groupId = org.libelektra
-## nexus plugin version
+# nexus plugin ver... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.